helpers\Html

All Classes | Properties | Methods Inheritance yii\helpers\Html » yii\helpers\BaseHtml Subclasses yii\bootstrap\BaseHtml, yii\bootstrap\Html Available since version 2.0 Source Code https://github.com/yiisoft/yii2/blob/master/framework/helpers/Html.php Html provides a set of static methods for generating commonly used HTML tags. Nearly all of the methods in this class allow setting additional html attributes for the html tags they generate. You can specify for example. 'class', 'style'

db\pgsql\Schema findUniqueIndexes()

findUniqueIndexes() public method Returns all unique indexes for the given table. Each array element is of the following structure: [ 'IndexName1' => ['col1' [, ...]], 'IndexName2' => ['col2' [, ...]], ] public array findUniqueIndexes ( $table )$table yii\db\TableSchema The table metadata return array All unique indexes for the given table.

debug\panels\DbPanel $summary

$summary public read-only property Content that is displayed at debug toolbar public string getSummary ( )

web\UploadedFile getBaseName()

getBaseName() public method public string getBaseName ( )return string Original file base name

db\ActiveRecord find()

find() public static method Creates an yii\db\ActiveQueryInterface instance for query purpose. The returned yii\db\ActiveQueryInterface instance can be further customized by calling methods defined in yii\db\ActiveQueryInterface before one() or all() is called to return populated ActiveRecord instances. For example, // find the customer whose ID is 1 $customer = Customer::find()->where(['id' => 1])->one(); // find all active customers and order them by their age: $customers = Cust

bootstrap\ButtonDropdown renderButton()

renderButton() protected method Generates the button dropdown. protected string renderButton ( )return string The rendering result.

db\ActiveRecord deleteAll()

deleteAll() public static method Deletes rows in the table using the provided conditions. WARNING: If you do not specify any condition, this method will delete ALL rows in the table. For example, to delete all customers whose status is 3: Customer::deleteAll('status = 3'); public static integer deleteAll ( $condition = '', $params = [] )$condition string|array The conditions that will be put in the WHERE part of the DELETE SQL. Please refer to yii\db\Query::where() on how to specify t

data\BaseDataProvider setPagination()

setPagination() public method Sets the pagination for this data provider. public void setPagination ( $value )$value array|yii\data\Pagination|boolean The pagination to be used by this data provider. This can be one of the following: a configuration array for creating the pagination object. The "class" element defaults to 'yii\data\Pagination' an instance of yii\data\Pagination or its subclass false, if pagination needs to be disabled. throws yii\base\InvalidParamException

validators\IpValidator setRanges()

setRanges() public method Set the IPv4 or IPv6 ranges that are allowed or forbidden. The following preparation tasks are performed: Recursively substitutes aliases (described in $networks) with their values. Removes duplicates public void setRanges ( $ranges )$ranges array The IPv4 or IPv6 ranges that are allowed or forbidden. When the array is empty, or the option not set, all IP addresses are allowed. Otherwise, the rules are checked sequentially until the first match is found. An IP a

gii\generators\crud\Generator getSearchAttributes()

getSearchAttributes() public method public array getSearchAttributes ( )return array Searchable attributes