helpers\Inflector

All Classes | Properties | Methods | Constants Inheritance yii\helpers\Inflector » yii\helpers\BaseInflector Available since version 2.0 Source Code https://github.com/yiisoft/yii2/blob/master/framework/helpers/Inflector.php Inflector pluralizes and singularizes English nouns. It also contains some other useful methods. Public Properties Property Type Description Defined By $plurals array The rules for converting a word into its plural form. yii\helpers\BaseInflector $singulars array Th

validators\UrlValidator $validSchemes

$validSchemes public property List of URI schemes which should be considered valid. By default, http and https are considered to be valid schemes. public array $validSchemes = ['http', 'https']

rbac\PhpManager removeAll()

removeAll() public method Removes all authorization data, including roles, permissions, rules, and assignments. public void removeAll ( )

console\controllers\FixtureController needToApplyAll()

needToApplyAll() public method Checks if needed to apply all fixtures. public boolean needToApplyAll ( $fixture )$fixture string

debug\models\search\Log rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

widgets\DetailView normalizeAttributes()

normalizeAttributes() protected method Normalizes the attribute specifications. protected void normalizeAttributes ( )throws yii\base\InvalidConfigException

bootstrap\ButtonGroup init()

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

grid\Column renderFooterCell()

renderFooterCell() public method Renders the footer cell. public void renderFooterCell ( )

web\CompositeUrlRule createUrl()

createUrl() public method Creates a URL according to the given route and parameters. public string|boolean createUrl ( $manager, $route, $params )$manager yii\web\UrlManager The URL manager $route string The route. It should not have slashes at the beginning or the end. $params array The parameters return string|boolean The created URL, or false if this rule cannot be used for creating this URL.

widgets\ListView $separator

$separator public property The HTML code to be displayed between any two consecutive items. public string $separator = "\n"