Applications

Application Configurations Application Properties Application Events Application Lifecycle Applications are objects that govern the overall structure and lifecycle of Yii application systems. Each Yii application system contains a single application object which is created in the entry script and is globally accessible through the expression \Yii::$app. Info: Depending on the context, when we say "an application", it can mean either an application object or an application system. There are t

base\Behavior events()

events() public method Declares event handlers for the $owner's events. Child classes may override this method to declare what PHP callbacks should be attached to the events of the $owner component. The callbacks will be attached to the $owner's events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component. The callbacks can be any of the following: method in this behavior: 'handleClick', equivalent to [$this, '

sphinx\Schema getIndexNames()

getIndexNames() public method Returns all index names in the Sphinx. public string[] getIndexNames ( $refresh = false )$refresh boolean Whether to fetch the latest available index names. If this is false, index names fetched previously (if available) will be returned. return string[] All index names in the Sphinx.

mongodb\Collection $database

$database public property MongoDB database instance. public yii\mongodb\Database $database = null

elasticsearch\Query init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

mongodb\ActiveFixture load()

load() public method Loads the fixture data. The default implementation will first reset the MongoDB collection and then populate it with the data returned by getData(). public void load ( )

debug\models\search\Log $message

$message public property Message attribute input search value public integer $message = null

mongodb\rbac\MongoDbManager removeAllPermissions()

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

Generating Code with Gii

Starting Gii Generating an Active Record Class Generating CRUD Code Trying it Out Summary This section will describe how to use Gii to automatically generate code that implements some common Web site features. Using Gii to auto-generate code is simply a matter of entering the right information per the instructions shown on the Gii Web pages. Through this tutorial, you will learn how to: enable Gii in your application, use Gii to generate an Active Record class, use Gii to generate the code imp

filters\RateLimitInterface saveAllowance()

saveAllowance() public abstract method Saves the number of allowed requests and the corresponding timestamp to a persistent storage. public abstract void saveAllowance ( $request, $action, $allowance, $timestamp )$request yii\web\Request The current request $action yii\base\Action The action to be executed $allowance integer The number of allowed requests remaining. $timestamp integer The current timestamp.