helpers\BaseHtmlPurifier process()

process() public static method Passes markup through HTMLPurifier making it safe to output to end user public static string process ( $content, $config = null )$content string The HTML content to purify $config array|Closure|null The config to use for HtmlPurifier. If not specified or null the default config will be used. You can use an array or an anonymous function to provide configuration options: An array will be passed to the HTMLPurifier_Config::create() method. An anonymous f

jui\DatePicker init()

init() public method Initializes the widget. If you override this method, make sure you call the parent implementation first. public void init ( )

i18n\Formatter asDate()

asDate() public method Formats the value as a date. See also $dateFormat. public string asDate ( $value, $format = null )$value integer|string|DateTime The value to be formatted. The following types of value are supported: an integer representing a UNIX timestamp a string that can be parsed to create a DateTime object. The timestamp is assumed to be in $defaultTimeZone unless a time zone is explicitly given. a PHP DateTime object $format string The format used to convert the value in

db\ActiveQueryTrait $asArray

$asArray public property Whether to return each record as an array. If false (default), an object of $modelClass will be created to represent each record. public boolean $asArray = null

db\BaseActiveRecord beforeSave()

beforeSave() public method This method is called at the beginning of inserting or updating a record. The default implementation will trigger an EVENT_BEFORE_INSERT event when $insert is true, or an EVENT_BEFORE_UPDATE event if $insert is false. When overriding this method, make sure you call the parent implementation like the following: public function beforeSave($insert) { if (parent::beforeSave($insert)) { // ...custom code here... return true; } else { ret

widgets\Breadcrumbs run()

run() public method Renders the widget. public void run ( )

caching\WinCache addValue()

addValue() protected method Stores a value identified by a key into cache if the cache does not contain this key. This is the implementation of the method declared in the parent class. protected boolean addValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $duration integer The number of seconds in which the cached value wil

db\QueryInterface addOrderBy()

addOrderBy() public abstract method Adds additional ORDER BY columns to the query. See also orderBy(). public abstract $this addOrderBy ( $columns )$columns string|array The columns (and the directions) to be ordered by. Columns can be specified in either a string (e.g. "id ASC, name DESC") or an array (e.g. ['id' => SORT_ASC, 'name' => SORT_DESC]). The method will automatically quote the column names unless a column contains some parenthesis (which means the column contains a DB

widgets\ActiveField $enableClientValidation

$enableClientValidation public property Whether to enable client-side data validation. If not set, it will take the value of yii\widgets\ActiveForm::$enableClientValidation. public boolean $enableClientValidation = null

db\QueryBuilder renameColumn()

renameColumn() public method Builds a SQL statement for renaming a column. public string renameColumn ( $table, $oldName, $newName )$table string The table whose column is to be renamed. The name will be properly quoted by the method. $oldName string The old name of the column. The name will be properly quoted by the method. $newName string The new name of the column. The name will be properly quoted by the method. return string The SQL statement for renaming a DB column.