Function Index Adds an error message that’s associated with a named property or field. Adds an error message assocated with the entire modelInstance. Adds a column to a table in the database. Adds an index to a table in the database. An alias for the add_to_base() method. Tries to service an Ajax call locally before sending a true, remote Ajax request. Appends a filter function to the ‘before’ filter chain of a Controller. Associates a child Model with a parent Model. Similar to belongsTo(), but uses findActive() instead of find for the generated parent getter function. An alias for Model.newInstance(attrs). Removes all the error messages held by this ModelErrors instance. A syntatic sugar helper function that creates a column definition array. Returns the number of error messages stored in the ModelErrors instance. Does a SELECT COUNT(*) query for active records. Creates a database table with some standard columns that Junction needs to be able to synchronize the table. Creates a table in the database. Executes a SQL query against the local application database. Sets the active column of the model instance to 0. Converts HTML entities (< and >) to < and >. Deletes the model record from the local RDBMS. Drops a table the database. Converts < and > characters to HTML entities (< and >). Backslashes single quotes (‘ becomes \’) and converts double quotes (“) to the " HTML entity. Returns an html /form close tag string. Returns an html div string containing all the validation error messages on a Model instance. Returns an html string of div’s for each validation error messages on a particular Model field. Returns the ModelErrors object that holds validation error information. Converts &, <, >, “ characters into HTML entity markup. Converts &, <, >, “ characters into HTML entity markup. Extracts useful debugging information out of an exception Error object. Queries the database for records of Model. Like find(), but ensures that ‘active = 1’ is part of the query. Equivalent to Model.find(‘all’, params). Queries the database for Model instances using a full SQL query string. Equivalent to Model.find(‘first’, params) Fills a req hash/map object with key/values from input controls in a form. Returns an Array of all error message strings. Returns an Array of error message strings associated with a given attrName. An alias for the full_messages() method. An alias for the full_messages_on() method. Sends a GET request through the Junction system. Sends an asynchronous GET request to the client-side Junction system. Returns the locale string for the current response. Returns all the keys of an object or map. An alias for the escape function. Associates a Model (a ‘parent’) in a has-many relationship with a ‘child’ Model. Similar to hasMany(), but uses findActive() instead of find() for the generated child getter function. Returns an html input/ hidden tag string that represents a Model field. Returns the text content of a static code file. Returns an html input/ tag string that represents a Model field. Returns an html input/ tag string. Returns the names of properties/fields that have validation errors. An alias for the invalid_attributes() method. Returns whether there are any error messages stored in the ModelErrors instance. Returns whether there are error messages associated with a particular property or field of a model instance. An alias for the isNewRecord() method. An alias for the isNewRecord() method. An alias for the isValid() method. An alias for the is_empty() method. An alias for the is_invalid() method. An alias for the isNewRecord() method. Returns true if the record is a new, unsaved record. Returns whether a client-side Junction environment is online (has connectivity to a server). Runs the validations on the model instance. Returns a script link or inline script tag, depending on the runtime environment. Fills and returns a hash/map object of standard View helper functions. Adds leading zero’s (0’s) as a prefix to a number or string. Returns a HTML A link string to the given controller/action. Returns an A link tag string. Returns a HTML A link to the given controller/action, with an onclick event handler that calls the client-side Junction system to process the request, if available. Similar to TrimPath.junctionUtil.toLocalDateString(), formats a Date as either ‘YYYY/MM/DD’ or ‘YYYY/MM/DD hh:mm:ss’. Uncapitalizes the first character in a string. An alias for the modelInit function. Tells the Junction system that a given function/constructor represents a Model object. An alias for Model.newInstance(attrs) Creates a new, unsaved instance of a Model. Returns the error messages associated with a particular property or field of a model instance. Returns the error messages that were associated with the entire model instance. An alias for the on_base() method. An optional callback function that’s called before client-side synchronization. Parses a string into a Date object, especially useful for handling the ISO-8601 date/time format generated by toSQLDateString(). Returns an html input/ password tag string that represents a Model field. Tells junction the plural name of the Model. Sends a POST request through the Junction system. Sends a POST request through the Junction system. Sends a POST request through the Junction system. Returns an html input/ radio tag string that represents a Model field. Sends a HTTP redirect response to the client. Sends a HTTP redirect response to the client, targeting an action on the current controller. Sends a HTTP redirect response to the client. Removes an index from the database. Renames a table in the database. Render a template. Render a template belonging to the current Controller. Render a template given a full template path. Sets a string to be the result returned to the client. |