Data Formatting

Configuring Formatter Formatting Date and Time Values Formatting Numbers Other Formats Null Values Localizing Data Format To display data in a more readable format for users, you may format them using the formatter application component. By default the formatter is implemented by yii\i18n\Formatter which provides a set of methods to format data as date/time, numbers, currencies, and other commonly used formats. You can use the formatter like the following, $formatter = \Yii::$app->formatter

authclient\OAuthToken getParams()

getParams() public method public array getParams ( )

rbac\PhpManager removeAllPermissions()

removeAllPermissions() public method Removes all permissions. All parent child relations will be adjusted accordingly. public void removeAllPermissions ( )

swiftmailer\Message getSwiftMessage()

getSwiftMessage() public method public \Swift_Message getSwiftMessage ( )return \Swift_Message Swift message instance.

db\QueryBuilder addCommentOnColumn()

addCommentOnColumn() public method (available since version 2.0.8) Builds a SQL command for adding comment to column public string addCommentOnColumn ( $table, $column, $comment )$table string The table whose column is to be commented. The table name will be properly quoted by the method. $column string The name of the column to be commented. The column name will be properly quoted by the method. $comment string The text of the comment to be added. The comment will be properly quoted

widgets\ActiveForm $errorSummaryCssClass

$errorSummaryCssClass public property The default CSS class for the error summary container. See also errorSummary(). public string $errorSummaryCssClass = 'error-summary'

filters\RateLimiter $response

$response public property The response to be sent. If not set, the response application component will be used. public yii\web\Response $response = null

rbac\DbManager addRule()

addRule() protected method Adds a rule to the RBAC system. protected boolean addRule ( $rule )$rule yii\rbac\Rule The rule to add return boolean Whether the rule is successfully added to the system throws Exception if data validation or saving fails (such as the name of the rule is not unique)

gii\generators\crud\Generator generateActionParams()

generateActionParams() public method Generates action parameters public string generateActionParams ( )

web\CacheSession init()

init() public method Initializes the application component. public void init ( )