- →$error array (8)
- ⇄code => integer 404$error['code']
- ⇄type => string (14) "CHttpException"$error['type']
- ⇄errorCode => integer 0$error['errorCode']
- ⇄message => UTF-8 string (18) "Продукт не найден."$error['message']
- ⇄→file => string (90) "/home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProductCon...$error['file']
- File (2.6KB)
- Contents
-rw-r----- 1336 1229 2.6KB Oct 13 2023 /home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProductController.php
/home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProductController.php
- ⇄line => integer 73$error['line']
- ⇄→trace => string (2049) "#0 /home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProduct...$error['trace']
#0 /home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProductController.php(42): FrontProductController->_loadModel('fujitsu-wgyk160...') #1 [internal function]: FrontProductController->actionView('fujitsu-wgyk160...') #2 /home/hostnew/recond.ua/www/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(FrontProductController), Array) #3 /home/hostnew/recond.ua/www/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(FrontProductController), Object(ReflectionMethod), Array) #4 /home/hostnew/recond.ua/www/framework/web/CController.php(308): CInlineAction->runWithParams(Array) #5 /home/hostnew/recond.ua/www/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction)) #6 /home/hostnew/recond.ua/www/framework/web/filters/CFilter.php(40): CFilterChain->run() #7 /home/hostnew/recond.ua/www/framework/web/filters/CFilterChain.php(130): CFilter->filter(Object(CFilterChain)) #8 /home/hostnew/recond.ua/www/framework/web/filters/CFilter.php(40): CFilterChain->run() #9 /home/hostnew/recond.ua/www/framework/web/CController.php(1145): CFilter->filter(Object(CFilterChain)) #10 /home/hostnew/recond.ua/www/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain)) #11 /home/hostnew/recond.ua/www/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain)) #12 /home/hostnew/recond.ua/www/framework/web/CController.php(291): CFilterChain->run() #13 /home/hostnew/recond.ua/www/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array) #14 /home/hostnew/recond.ua/www/framework/web/CWebApplication.php(282): CController->run('view') #15 /home/hostnew/recond.ua/www/framework/web/CWebApplication.php(141): CWebApplication->runController('store/frontProd...') #16 /home/hostnew/recond.ua/www/framework/base/CApplication.php(185): CWebApplication->processRequest() #17 /home/hostnew/recond.ua/www/index.php(25): CApplication->run() #18 {main}
- ⇄→traces => Debug Backtrace (18)$error['traces']
- ⇄→<ROOT>/protected/modules/store/controllers/FrontProductController.php:42 FrontProductController->_loadModel($url)$error['traces'][0]
- Source
- Arguments
/** * Display product * @param string $url product url */ public function actionView($url) {
$this->_loadModel($url);$set = new StoreSetForm(); $service = new StoreSetService(); if(Yii::app()->request->isAjaxRequest){ $set->attributes = $_POST['StoreSetForm']; $set = $service->create($set); $service->toCart($set);- ⇄$url => string (29) "fujitsu-wgyk160dd9_woyk160lct"$error['traces'][0]['args'][0]
- ⇄$url => string (29) "fujitsu-wgyk160dd9_woyk160lct"
- ⇄→PHP internal call FrontProductController->actionView($url)$error['traces'][1]
- Arguments
- ⇄$url => string (29) "fujitsu-wgyk160dd9_woyk160lct"$error['traces'][1]['args'][0]
- ⇄$url => string (29) "fujitsu-wgyk160dd9_woyk160lct"
- ⇄→<ROOT>/framework/web/actions/CAction.php:109 ReflectionMethod->invokeArgs($object, array $args)$error['traces'][2]
- Source
- Arguments (2)
return false; } elseif($param->isDefaultValueAvailable()) $ps[]=$param->getDefaultValue(); else return false; }
$method->invokeArgs($object,$ps);return true; } }- ⇄→$object => FrontProductController (21)$error['traces'][2]['args'][0]
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][2]['args'][0]->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][2]['args'][0]->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][2]['args'][0]->layout
- ⇄public menu -> array (0)$error['traces'][2]['args'][0]->menu
- ⇄public model -> null$error['traces'][2]['args'][0]->model
- ⇄public pageDescription -> null$error['traces'][2]['args'][0]->pageDescription
- ⇄public pageHeader -> null$error['traces'][2]['args'][0]->pageHeader
- ⇄public pageKeywords -> null$error['traces'][2]['args'][0]->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][2]['args'][0]->sidebarContent
- →private _action -> CInlineAction (4)
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Recursion
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- →public run() Runs the action. The action method defined in the controller is invoked. This me...
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- →public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- →public getController(): CController the controller who owns this action.
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- →public getId(): string id of this action
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- →public __construct($controller, $id) Constructor.
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22)
- Properties (22)
- Available methods (65)
- public _assetsUrl -> null
- public behaviors -> array (0)
- public controllerMap -> array (0)
- public controllerNamespace -> null
- public defaultController -> string (7) "default"
- public layout -> null
- public moduleName -> string (5) "store"
- public preload -> array (0)
- →private _basePath -> string (51) "/home/hostnew/recond.ua/www/protected/modules/store"
- Directory (4KB)
drwxr-x--- 1336 1229 4KB Nov 25 2020 /home/hostnew/recond.ua/www/protected/modules/store
- private _componentConfig -> array (0)
- private _components -> array (0)
- →private _controllerPath -> string (63) "/home/hostnew/recond.ua/www/protected/modules/store/controllers"
- Directory (4KB)
drwxr-x--- 1336 1229 4KB Nov 25 2020 /home/hostnew/recond.ua/www/protected/modules/store/controllers
- private _e -> null
- private _id -> string (5) "store"
- private _layoutPath -> null
- private _m -> null
- private _moduleConfig -> array (0)
- private _modulePath -> null
- private _modules -> array (0)
- private _params -> null
- private _parentModule -> null
- private _viewPath -> null
- →public init()
Defined in <ROOT>/protected/modules/store/StoreModule.php:7
- →public afterInstall() Method will be called after module installed
/** * Method will be called after module installed */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:59
- →public setAssetsUrl($url): void Set assets url
/** * Set assets url * * @param string $url * @access public * @return void */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:51
- →public afterRemove() Method will be called after module removed
/** * Method will be called after module removed */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:65
- →public getAssetsUrl(): string Assets url Publish admin stylesheets,images,scripts,etc.. and return assets url
/** * Publish admin stylesheets,images,scripts,etc.. and return assets url * * @access public * @return string Assets url */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:29
- →public initAdmin()
Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:14
- →public setViewPath($path)
/** * @param string $path the root directory of view files. * @throws CException if the directory does not exist. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:135
- →public setLayoutPath($path)
/** * @param string $path the root directory of layout files. * @throws CException if the directory does not exist. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:158
- →public afterControllerAction($controller, $action) The post-filter for controller actions. This method is invoked after the current...
/** * The post-filter for controller actions. * This method is invoked after the currently requested controller action and all its filters * are executed. If you override this method, make sure you call the parent implementation at the end. * @param CController $controller the controller * @param CAction $action the action */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:196
- →public getViewPath(): string the root directory of view files. Defaults to 'moduleDir/views' where
/** * @return string the root directory of view files. Defaults to 'moduleDir/views' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:123
- →public beforeControllerAction($controller, $action): boolean whether the action should be executed. The pre-filter for controller actions. This method is invoked before the current...
/** * The pre-filter for controller actions. * This method is invoked before the currently requested controller action and all its filters * are executed. You may override this method in the following way: * <pre> * if(parent::beforeControllerAction($controller,$action)) * { * // your code * return true; * } * else * return false; * </pre> * @param CController $controller the controller * @param CAction $action the action * @return boolean whether the action should be executed. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:182
- →public getLayoutPath(): string the root directory of layout files. Defaults to 'moduleDir/views/layouts' where
/** * @return string the root directory of layout files. Defaults to 'moduleDir/views/layouts' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:146
- →public getName(): string the name of this module. Returns the name of this module. The default implementation simply returns {@lin...
/** * Returns the name of this module. * The default implementation simply returns {@link id}. * You may override this method to customize the name of this module. * @return string the name of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:69
- →public setControllerPath($value)
/** * @param string $value the directory that contains the controller classes. * @throws CException if the directory is invalid */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:112
- →public getVersion(): string the version of this module. Returns the version of this module. The default implementation returns '1.0'. Yo...
/** * Returns the version of this module. * The default implementation returns '1.0'. * You may override this method to customize the version of this module. * @return string the version of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:91
- →public getDescription(): string the description of this module. Returns the description of this module. The default implementation returns an em...
/** * Returns the description of this module. * The default implementation returns an empty string. * You may override this method to customize the description of this module. * @return string the description of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:80
- →public getControllerPath(): string the directory that contains the controller classes. Defaults to 'moduleDir/controllers' where
/** * @return string the directory that contains the controller classes. Defaults to 'moduleDir/controllers' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:100
- →public setModules($modules, $merge = true) Configures the sub-modules of this module.
/** * Configures the sub-modules of this module. * * Call this method to declare sub-modules and configure them with their initial property values. * The parameter should be an array of module configurations. Each array element represents a single module, * which can be either a string representing the module ID or an ID-configuration pair representing * a module with the specified ID and the initial property values. * * For example, the following array declares two modules: * <pre> * array( * 'admin', // a single module ID * 'payment'=>array( // ID-configuration pair * 'server'=>'paymentserver.com', * ), * ) * </pre> * * By default, the module class is determined using the expression <code>ucfirst($moduleID).'Module'</code>. * And the class file is located under <code>modules/$moduleID</code>. * You may override this default by explicitly specifying the 'class' option in the configuration. * * You may also enable or disable a module by specifying the 'enabled' option in the configuration. * * @param array $modules module configurations. * @param boolean $merge whether to merge the new module configuration * with the existing one. Defaults to true, meaning the previously registered * module configuration with the same ID will be merged with the new configuration. * If set to false, the existing configuration will be replaced completely. * This parameter is available since 1.1.16. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:341
- →public getModules(): array the configuration of the currently installed modules (module ID => configuration) Returns the configuration of the currently installed modules.
/** * Returns the configuration of the currently installed modules. * @return array the configuration of the currently installed modules (module ID => configuration) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:305
- →public getParentModule(): CModule the parent module. Null if this module does not have a parent. Returns the parent module.
/** * Returns the parent module. * @return CModule the parent module. Null if this module does not have a parent. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:257
- →public hasComponent($id): boolean whether the named application component exists (including both loaded and disabled.) Checks whether the named component exists.
/** * Checks whether the named component exists. * @param string $id application component ID * @return boolean whether the named application component exists (including both loaded and disabled.) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:370
- →public getModule($id): CModule the module instance, null if the module is disabled or does not exist. Retrieves the named application module. The module has to be declared in {@link ...
/** * Retrieves the named application module. * The module has to be declared in {@link modules}. A new instance will be created * when calling this method with the given ID for the first time. * @param string $id application module ID (case-sensitive) * @return CModule the module instance, null if the module is disabled or does not exist. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:269
- →public getComponents($loadedOnly = true): array the application components (indexed by their IDs) Returns the application components.
/** * Returns the application components. * @param boolean $loadedOnly whether to return the loaded components only. If this is set false, * then all components specified in the configuration will be returned, whether they are loaded or not. * Loaded components will be returned as objects, while unloaded components as configuration arrays. * This parameter has been available since version 1.1.3. * @return array the application components (indexed by their IDs) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:466
- →public setAliases($mappings) Defines the root aliases.
/** * Defines the root aliases. * @param array $mappings list of aliases to be defined. The array keys are root aliases, * while the array values are paths or aliases corresponding to the root aliases. * For example, * <pre> * array( * 'models'=>'application.models', // an existing alias * 'extensions'=>'application.extensions', // an existing alias * 'backend'=>dirname(__FILE__).'/../backend', // a directory * ) * </pre> */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:242
- →public configure($config) Configures the module with the specified configuration.
/** * Configures the module with the specified configuration. * @param array $config the configuration array */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:515
- →public setComponents($components, $merge = true) Sets the application components.
/** * Sets the application components. * * When a configuration is used to specify a component, it should consist of * the component's initial property values (name-value pairs). Additionally, * a component can be enabled (default) or disabled by specifying the 'enabled' value * in the configuration. * * If a configuration is specified with an ID that is the same as an existing * component or configuration, the existing one will be replaced silently. * * The following is the configuration for two components: * <pre> * array( * 'db'=>array( * 'class'=>'CDbConnection', * 'connectionString'=>'sqlite:path/to/file.db', * ), * 'cache'=>array( * 'class'=>'CDbCache', * 'connectionID'=>'db', * 'enabled'=>!YII_DEBUG, // enable caching in non-debug mode * ), * ) * </pre> * * @param array $components application components(id=>component configuration or instances) * @param boolean $merge whether to merge the new component configuration with the existing one. * Defaults to true, meaning the previously registered component configuration of the same ID * will be merged with the new configuration. If false, the existing configuration will be replaced completely. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:505
- →public setComponent($id, $component, $merge = true) Puts a component under the management of the module. The component will be initi...
/** * Puts a component under the management of the module. * The component will be initialized by calling its {@link CApplicationComponent::init() init()} * method if it has not done so. * @param string $id component ID * @param array|IApplicationComponent $component application component * (either configuration array or instance). If this parameter is null, * component will be unloaded from the module. * @param boolean $merge whether to merge the new component configuration * with the existing one. Defaults to true, meaning the previously registered * component configuration with the same ID will be merged with the new configuration. * If set to false, the existing configuration will be replaced completely. * This parameter is available since 1.1.13. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:414
- →public getComponent($id, $createIfNull = true): IApplicationComponent the application component instance, null if the application component is disabled or does not exist. Retrieves the named application component.
/** * Retrieves the named application component. * @param string $id application component ID (case-sensitive) * @param boolean $createIfNull whether to create the component if it doesn't exist yet. * @return IApplicationComponent the application component instance, null if the application component is disabled or does not exist. * @see hasComponent */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:382
- →public hasModule($id): boolean whether the specified module is installed. Returns a value indicating whether the specified module is installed.
/** * Returns a value indicating whether the specified module is installed. * @param string $id the module ID * @return boolean whether the specified module is installed. * @since 1.1.2 */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:296
- →public getId(): string the module ID. Returns the module ID.
/** * Returns the module ID. * @return string the module ID. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:127
- →public setId($id) Sets the module ID.
/** * Sets the module ID. * @param string $id the module ID */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:136
- →public __isset($name): boolean whether the property value is null Checks if a property value is null. This method overrides the parent implementat...
/** * Checks if a property value is null. * This method overrides the parent implementation by checking * if the named application component is loaded. * @param string $name the property name or the event name * @return boolean whether the property value is null */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:115
- →public __get($name): mixed the named property value Getter magic method. This method is overridden to support accessing application ...
/** * Getter magic method. * This method is overridden to support accessing application components * like reading module properties. * @param string $name application component or property name * @return mixed the named property value */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:100
- →public setImport($aliases) Sets the aliases that are used in the module.
/** * Sets the aliases that are used in the module. * @param array $aliases list of aliases to be imported */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:223
- →public getBasePath(): string the root directory of the module. Defaults to the directory containing the module class. Returns the root directory of the module.
/** * Returns the root directory of the module. * @return string the root directory of the module. Defaults to the directory containing the module class. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:145
- →public __construct($id, $parent, $config = null) Constructor.
/** * Constructor. * @param string $id the ID of this module * @param CModule $parent the parent module (if any) * @param mixed $config the module configuration. It can be either an array or * the path of a PHP file returning the configuration array. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:69
- →public setBasePath($path) Sets the root directory of the module. This method can only be invoked at the be...
/** * Sets the root directory of the module. * This method can only be invoked at the beginning of the constructor. * @param string $path the root directory of the module. * @throws CException if the directory does not exist. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:161
- →public setModulePath($value) Sets the directory that contains the application modules.
/** * Sets the directory that contains the application modules. * @param string $value the directory that contains the application modules. * @throws CException if the directory is invalid */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:212
- →public getModulePath(): string the directory that contains the application modules. Defaults to the 'modules' subdirectory of {@link basePath}. Returns the directory that contains the application modules.
/** * Returns the directory that contains the application modules. * @return string the directory that contains the application modules. Defaults to the 'modules' subdirectory of {@link basePath}. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:199
- →public getParams(): CAttributeCollection the list of user-defined parameters Returns user-defined parameters.
/** * Returns user-defined parameters. * @return CAttributeCollection the list of user-defined parameters */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:172
- →public setParams($value) Sets user-defined parameters.
/** * Sets user-defined parameters. * @param array $value user-defined parameters. This should be in name-value pairs. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:188
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →protected preloadComponents() Loads static application components.
/** * Loads static application components. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:527
- →protected preinit() Preinitializes the module. This method is called at the beginning of the module ...
/** * Preinitializes the module. * This method is called at the beginning of the module constructor. * You may override this method to do some customized preinitialization work. * Note that at this moment, the module is not configured yet. * @see init */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:540
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][2]['args'][0]->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][2]['args'][0]->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][2]['args'][0]->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][2]['args'][0]->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][2]['args'][0]->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][2]['args'][0]->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][2]['args'][0]->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][2]['args'][0]->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][2]['args'][0]->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][2]['args'][0]->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][2]['args'][0]->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][2]['args'][0]->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][2]['args'][0]->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][2]['args'][0]->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][2]['args'][0]->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][2]['args'][0]->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][2]['args'][0]->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][2]['args'][0]->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][2]['args'][0]->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][2]['args'][0]->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][2]['args'][0]->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][2]['args'][0]->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][2]['args'][0]->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][2]['args'][0]->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][2]['args'][0]->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][2]['args'][0]->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][2]['args'][0]->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][2]['args'][0]->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][2]['args'][0]->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][2]['args'][0]->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][2]['args'][0]->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][2]['args'][0]->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][2]['args'][0]->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][2]['args'][0]->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][2]['args'][0]->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][2]['args'][0]->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][2]['args'][0]->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][2]['args'][0]->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][2]['args'][0]->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][2]['args'][0]->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][2]['args'][0]->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][2]['args'][0]->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][2]['args'][0]->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][2]['args'][0]->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][2]['args'][0]->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][2]['args'][0]->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][2]['args'][0]->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][2]['args'][0]->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][2]['args'][0]->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][2]['args'][0]->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][2]['args'][0]->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][2]['args'][0]->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][2]['args'][0]->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][2]['args'][0]->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][2]['args'][0]->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][2]['args'][0]->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][2]['args'][0]->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][2]['args'][0]->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][2]['args'][0]->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][2]['args'][0]->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][2]['args'][0]->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][2]['args'][0]->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][2]['args'][0]->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][2]['args'][0]->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][2]['args'][0]->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][2]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][2]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][2]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][2]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][2]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][2]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][2]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][2]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][2]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][2]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][2]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][2]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][2]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][2]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][2]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][2]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][2]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][2]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][2]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][2]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][2]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][2]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][2]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][2]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄→$args => array (1)$error['traces'][2]['args'][1]
- ⇄0 => string (29) "fujitsu-wgyk160dd9_woyk160lct"$error['traces'][2]['args'][1][0]
- ⇄0 => string (29) "fujitsu-wgyk160dd9_woyk160lct"
- ⇄→$object => FrontProductController (21)
- ⇄→<ROOT>/framework/web/actions/CInlineAction.php:47 CAction->runWithParamsInternal($object, $method, $params)$error['traces'][3]
- Source
- Arguments (3)
*/ public function runWithParams($params) { $methodName='action'.$this->getId(); $controller=$this->getController(); $method=new ReflectionMethod($controller, $methodName); if($method->getNumberOfParameters()>0)
return $this->runWithParamsInternal($controller, $method, $params);$controller->$methodName(); return true; } }- ⇄→$object => FrontProductController (21)$error['traces'][3]['args'][0]
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][3]['args'][0]->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][3]['args'][0]->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][3]['args'][0]->layout
- ⇄public menu -> array (0)$error['traces'][3]['args'][0]->menu
- ⇄public model -> null$error['traces'][3]['args'][0]->model
- ⇄public pageDescription -> null$error['traces'][3]['args'][0]->pageDescription
- ⇄public pageHeader -> null$error['traces'][3]['args'][0]->pageHeader
- ⇄public pageKeywords -> null$error['traces'][3]['args'][0]->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][3]['args'][0]->sidebarContent
- →private _action -> CInlineAction (4)
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Recursion
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- →public run() Runs the action. The action method defined in the controller is invoked. This me...
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- →public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- →public getController(): CController the controller who owns this action.
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- →public getId(): string id of this action
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- →public __construct($controller, $id) Constructor.
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22)
- Properties (22)
- Available methods (65)
- public _assetsUrl -> null
- public behaviors -> array (0)
- public controllerMap -> array (0)
- public controllerNamespace -> null
- public defaultController -> string (7) "default"
- public layout -> null
- public moduleName -> string (5) "store"
- public preload -> array (0)
- →private _basePath -> string (51) "/home/hostnew/recond.ua/www/protected/modules/store"
- Directory (4KB)
drwxr-x--- 1336 1229 4KB Nov 25 2020 /home/hostnew/recond.ua/www/protected/modules/store
- private _componentConfig -> array (0)
- private _components -> array (0)
- →private _controllerPath -> string (63) "/home/hostnew/recond.ua/www/protected/modules/store/controllers"
- Directory (4KB)
drwxr-x--- 1336 1229 4KB Nov 25 2020 /home/hostnew/recond.ua/www/protected/modules/store/controllers
- private _e -> null
- private _id -> string (5) "store"
- private _layoutPath -> null
- private _m -> null
- private _moduleConfig -> array (0)
- private _modulePath -> null
- private _modules -> array (0)
- private _params -> null
- private _parentModule -> null
- private _viewPath -> null
- →public init()
Defined in <ROOT>/protected/modules/store/StoreModule.php:7
- →public afterInstall() Method will be called after module installed
/** * Method will be called after module installed */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:59
- →public setAssetsUrl($url): void Set assets url
/** * Set assets url * * @param string $url * @access public * @return void */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:51
- →public afterRemove() Method will be called after module removed
/** * Method will be called after module removed */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:65
- →public getAssetsUrl(): string Assets url Publish admin stylesheets,images,scripts,etc.. and return assets url
/** * Publish admin stylesheets,images,scripts,etc.. and return assets url * * @access public * @return string Assets url */ Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:29
- →public initAdmin()
Inherited from BaseModule Defined in <ROOT>/protected/components/BaseModule.php:14
- →public setViewPath($path)
/** * @param string $path the root directory of view files. * @throws CException if the directory does not exist. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:135
- →public setLayoutPath($path)
/** * @param string $path the root directory of layout files. * @throws CException if the directory does not exist. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:158
- →public afterControllerAction($controller, $action) The post-filter for controller actions. This method is invoked after the current...
/** * The post-filter for controller actions. * This method is invoked after the currently requested controller action and all its filters * are executed. If you override this method, make sure you call the parent implementation at the end. * @param CController $controller the controller * @param CAction $action the action */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:196
- →public getViewPath(): string the root directory of view files. Defaults to 'moduleDir/views' where
/** * @return string the root directory of view files. Defaults to 'moduleDir/views' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:123
- →public beforeControllerAction($controller, $action): boolean whether the action should be executed. The pre-filter for controller actions. This method is invoked before the current...
/** * The pre-filter for controller actions. * This method is invoked before the currently requested controller action and all its filters * are executed. You may override this method in the following way: * <pre> * if(parent::beforeControllerAction($controller,$action)) * { * // your code * return true; * } * else * return false; * </pre> * @param CController $controller the controller * @param CAction $action the action * @return boolean whether the action should be executed. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:182
- →public getLayoutPath(): string the root directory of layout files. Defaults to 'moduleDir/views/layouts' where
/** * @return string the root directory of layout files. Defaults to 'moduleDir/views/layouts' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:146
- →public getName(): string the name of this module. Returns the name of this module. The default implementation simply returns {@lin...
/** * Returns the name of this module. * The default implementation simply returns {@link id}. * You may override this method to customize the name of this module. * @return string the name of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:69
- →public setControllerPath($value)
/** * @param string $value the directory that contains the controller classes. * @throws CException if the directory is invalid */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:112
- →public getVersion(): string the version of this module. Returns the version of this module. The default implementation returns '1.0'. Yo...
/** * Returns the version of this module. * The default implementation returns '1.0'. * You may override this method to customize the version of this module. * @return string the version of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:91
- →public getDescription(): string the description of this module. Returns the description of this module. The default implementation returns an em...
/** * Returns the description of this module. * The default implementation returns an empty string. * You may override this method to customize the description of this module. * @return string the description of this module. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:80
- →public getControllerPath(): string the directory that contains the controller classes. Defaults to 'moduleDir/controllers' where
/** * @return string the directory that contains the controller classes. Defaults to 'moduleDir/controllers' where * moduleDir is the directory containing the module class. */ Inherited from CWebModule Defined in <ROOT>/framework/web/CWebModule.php:100
- →public setModules($modules, $merge = true) Configures the sub-modules of this module.
/** * Configures the sub-modules of this module. * * Call this method to declare sub-modules and configure them with their initial property values. * The parameter should be an array of module configurations. Each array element represents a single module, * which can be either a string representing the module ID or an ID-configuration pair representing * a module with the specified ID and the initial property values. * * For example, the following array declares two modules: * <pre> * array( * 'admin', // a single module ID * 'payment'=>array( // ID-configuration pair * 'server'=>'paymentserver.com', * ), * ) * </pre> * * By default, the module class is determined using the expression <code>ucfirst($moduleID).'Module'</code>. * And the class file is located under <code>modules/$moduleID</code>. * You may override this default by explicitly specifying the 'class' option in the configuration. * * You may also enable or disable a module by specifying the 'enabled' option in the configuration. * * @param array $modules module configurations. * @param boolean $merge whether to merge the new module configuration * with the existing one. Defaults to true, meaning the previously registered * module configuration with the same ID will be merged with the new configuration. * If set to false, the existing configuration will be replaced completely. * This parameter is available since 1.1.16. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:341
- →public getModules(): array the configuration of the currently installed modules (module ID => configuration) Returns the configuration of the currently installed modules.
/** * Returns the configuration of the currently installed modules. * @return array the configuration of the currently installed modules (module ID => configuration) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:305
- →public getParentModule(): CModule the parent module. Null if this module does not have a parent. Returns the parent module.
/** * Returns the parent module. * @return CModule the parent module. Null if this module does not have a parent. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:257
- →public hasComponent($id): boolean whether the named application component exists (including both loaded and disabled.) Checks whether the named component exists.
/** * Checks whether the named component exists. * @param string $id application component ID * @return boolean whether the named application component exists (including both loaded and disabled.) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:370
- →public getModule($id): CModule the module instance, null if the module is disabled or does not exist. Retrieves the named application module. The module has to be declared in {@link ...
/** * Retrieves the named application module. * The module has to be declared in {@link modules}. A new instance will be created * when calling this method with the given ID for the first time. * @param string $id application module ID (case-sensitive) * @return CModule the module instance, null if the module is disabled or does not exist. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:269
- →public getComponents($loadedOnly = true): array the application components (indexed by their IDs) Returns the application components.
/** * Returns the application components. * @param boolean $loadedOnly whether to return the loaded components only. If this is set false, * then all components specified in the configuration will be returned, whether they are loaded or not. * Loaded components will be returned as objects, while unloaded components as configuration arrays. * This parameter has been available since version 1.1.3. * @return array the application components (indexed by their IDs) */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:466
- →public setAliases($mappings) Defines the root aliases.
/** * Defines the root aliases. * @param array $mappings list of aliases to be defined. The array keys are root aliases, * while the array values are paths or aliases corresponding to the root aliases. * For example, * <pre> * array( * 'models'=>'application.models', // an existing alias * 'extensions'=>'application.extensions', // an existing alias * 'backend'=>dirname(__FILE__).'/../backend', // a directory * ) * </pre> */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:242
- →public configure($config) Configures the module with the specified configuration.
/** * Configures the module with the specified configuration. * @param array $config the configuration array */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:515
- →public setComponents($components, $merge = true) Sets the application components.
/** * Sets the application components. * * When a configuration is used to specify a component, it should consist of * the component's initial property values (name-value pairs). Additionally, * a component can be enabled (default) or disabled by specifying the 'enabled' value * in the configuration. * * If a configuration is specified with an ID that is the same as an existing * component or configuration, the existing one will be replaced silently. * * The following is the configuration for two components: * <pre> * array( * 'db'=>array( * 'class'=>'CDbConnection', * 'connectionString'=>'sqlite:path/to/file.db', * ), * 'cache'=>array( * 'class'=>'CDbCache', * 'connectionID'=>'db', * 'enabled'=>!YII_DEBUG, // enable caching in non-debug mode * ), * ) * </pre> * * @param array $components application components(id=>component configuration or instances) * @param boolean $merge whether to merge the new component configuration with the existing one. * Defaults to true, meaning the previously registered component configuration of the same ID * will be merged with the new configuration. If false, the existing configuration will be replaced completely. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:505
- →public setComponent($id, $component, $merge = true) Puts a component under the management of the module. The component will be initi...
/** * Puts a component under the management of the module. * The component will be initialized by calling its {@link CApplicationComponent::init() init()} * method if it has not done so. * @param string $id component ID * @param array|IApplicationComponent $component application component * (either configuration array or instance). If this parameter is null, * component will be unloaded from the module. * @param boolean $merge whether to merge the new component configuration * with the existing one. Defaults to true, meaning the previously registered * component configuration with the same ID will be merged with the new configuration. * If set to false, the existing configuration will be replaced completely. * This parameter is available since 1.1.13. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:414
- →public getComponent($id, $createIfNull = true): IApplicationComponent the application component instance, null if the application component is disabled or does not exist. Retrieves the named application component.
/** * Retrieves the named application component. * @param string $id application component ID (case-sensitive) * @param boolean $createIfNull whether to create the component if it doesn't exist yet. * @return IApplicationComponent the application component instance, null if the application component is disabled or does not exist. * @see hasComponent */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:382
- →public hasModule($id): boolean whether the specified module is installed. Returns a value indicating whether the specified module is installed.
/** * Returns a value indicating whether the specified module is installed. * @param string $id the module ID * @return boolean whether the specified module is installed. * @since 1.1.2 */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:296
- →public getId(): string the module ID. Returns the module ID.
/** * Returns the module ID. * @return string the module ID. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:127
- →public setId($id) Sets the module ID.
/** * Sets the module ID. * @param string $id the module ID */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:136
- →public __isset($name): boolean whether the property value is null Checks if a property value is null. This method overrides the parent implementat...
/** * Checks if a property value is null. * This method overrides the parent implementation by checking * if the named application component is loaded. * @param string $name the property name or the event name * @return boolean whether the property value is null */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:115
- →public __get($name): mixed the named property value Getter magic method. This method is overridden to support accessing application ...
/** * Getter magic method. * This method is overridden to support accessing application components * like reading module properties. * @param string $name application component or property name * @return mixed the named property value */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:100
- →public setImport($aliases) Sets the aliases that are used in the module.
/** * Sets the aliases that are used in the module. * @param array $aliases list of aliases to be imported */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:223
- →public getBasePath(): string the root directory of the module. Defaults to the directory containing the module class. Returns the root directory of the module.
/** * Returns the root directory of the module. * @return string the root directory of the module. Defaults to the directory containing the module class. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:145
- →public __construct($id, $parent, $config = null) Constructor.
/** * Constructor. * @param string $id the ID of this module * @param CModule $parent the parent module (if any) * @param mixed $config the module configuration. It can be either an array or * the path of a PHP file returning the configuration array. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:69
- →public setBasePath($path) Sets the root directory of the module. This method can only be invoked at the be...
/** * Sets the root directory of the module. * This method can only be invoked at the beginning of the constructor. * @param string $path the root directory of the module. * @throws CException if the directory does not exist. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:161
- →public setModulePath($value) Sets the directory that contains the application modules.
/** * Sets the directory that contains the application modules. * @param string $value the directory that contains the application modules. * @throws CException if the directory is invalid */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:212
- →public getModulePath(): string the directory that contains the application modules. Defaults to the 'modules' subdirectory of {@link basePath}. Returns the directory that contains the application modules.
/** * Returns the directory that contains the application modules. * @return string the directory that contains the application modules. Defaults to the 'modules' subdirectory of {@link basePath}. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:199
- →public getParams(): CAttributeCollection the list of user-defined parameters Returns user-defined parameters.
/** * Returns user-defined parameters. * @return CAttributeCollection the list of user-defined parameters */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:172
- →public setParams($value) Sets user-defined parameters.
/** * Sets user-defined parameters. * @param array $value user-defined parameters. This should be in name-value pairs. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:188
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →protected preloadComponents() Loads static application components.
/** * Loads static application components. */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:527
- →protected preinit() Preinitializes the module. This method is called at the beginning of the module ...
/** * Preinitializes the module. * This method is called at the beginning of the module constructor. * You may override this method to do some customized preinitialization work. * Note that at this moment, the module is not configured yet. * @see init */ Inherited from CModule Defined in <ROOT>/framework/base/CModule.php:540
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][3]['args'][0]->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][3]['args'][0]->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][3]['args'][0]->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][3]['args'][0]->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][3]['args'][0]->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][3]['args'][0]->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][3]['args'][0]->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][3]['args'][0]->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][3]['args'][0]->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][3]['args'][0]->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][3]['args'][0]->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][3]['args'][0]->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][3]['args'][0]->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][3]['args'][0]->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][3]['args'][0]->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][3]['args'][0]->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][3]['args'][0]->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][3]['args'][0]->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][3]['args'][0]->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][3]['args'][0]->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][3]['args'][0]->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][3]['args'][0]->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][3]['args'][0]->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][3]['args'][0]->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][3]['args'][0]->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][3]['args'][0]->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][3]['args'][0]->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][3]['args'][0]->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][3]['args'][0]->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][3]['args'][0]->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][3]['args'][0]->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][3]['args'][0]->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][3]['args'][0]->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][3]['args'][0]->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][3]['args'][0]->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][3]['args'][0]->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][3]['args'][0]->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][3]['args'][0]->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][3]['args'][0]->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][3]['args'][0]->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][3]['args'][0]->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][3]['args'][0]->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][3]['args'][0]->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][3]['args'][0]->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][3]['args'][0]->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][3]['args'][0]->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][3]['args'][0]->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][3]['args'][0]->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][3]['args'][0]->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][3]['args'][0]->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][3]['args'][0]->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][3]['args'][0]->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][3]['args'][0]->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][3]['args'][0]->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][3]['args'][0]->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][3]['args'][0]->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][3]['args'][0]->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][3]['args'][0]->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][3]['args'][0]->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][3]['args'][0]->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][3]['args'][0]->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][3]['args'][0]->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][3]['args'][0]->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][3]['args'][0]->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][3]['args'][0]->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][3]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][3]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][3]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][3]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][3]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][3]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][3]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][3]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][3]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][3]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][3]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][3]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][3]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][3]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][3]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][3]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][3]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][3]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][3]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][3]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][3]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][3]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][3]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][3]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄→$method => ReflectionMethod (2)$error['traces'][3]['args'][1]
- Properties (2)
- Available methods (42)
- Static class properties (6)
- toString
- ⇄public class -> string (22) "FrontProductController"$error['traces'][3]['args'][1]->class
- ⇄public name -> string (10) "actionView"$error['traces'][3]['args'][1]->name
- ⇄public class -> string (22) "FrontProductController"
- ⇄public getModifiers()$error['traces'][3]['args'][1]->getModifiers()
- ⇄public getClosure($object)$error['traces'][3]['args'][1]->getClosure($object)
- ⇄public isDestructor()$error['traces'][3]['args'][1]->isDestructor()
- ⇄public invoke($object, $args)$error['traces'][3]['args'][1]->invoke($object, $args)
- ⇄public getDeclaringClass()$error['traces'][3]['args'][1]->getDeclaringClass()
- ⇄public setAccessible($value)$error['traces'][3]['args'][1]->setAccessible($value)
- ⇄public getPrototype()$error['traces'][3]['args'][1]->getPrototype()
- ⇄public isConstructor()$error['traces'][3]['args'][1]->isConstructor()
- ⇄public invokeArgs($object, array $args)$error['traces'][3]['args'][1]->invokeArgs($object, array $args)
- ⇄public __toString()$error['traces'][3]['args'][1]->__toString()
- ⇄public __construct($class_or_method, $name)new \ReflectionMethod($class_or_method, $name)
- ⇄public isStatic()$error['traces'][3]['args'][1]->isStatic()
- ⇄public isPrivate()$error['traces'][3]['args'][1]->isPrivate()
- ⇄public isPublic()$error['traces'][3]['args'][1]->isPublic()
- ⇄public isAbstract()$error['traces'][3]['args'][1]->isAbstract()
- ⇄public isProtected()$error['traces'][3]['args'][1]->isProtected()
- ⇄public isFinal()$error['traces'][3]['args'][1]->isFinal()
- ⇄→public getNamespaceName()$error['traces'][3]['args'][1]->getNamespaceName()
Inherited from ReflectionFunctionAbstract
- ⇄→public getNumberOfParameters()$error['traces'][3]['args'][1]->getNumberOfParameters()
Inherited from ReflectionFunctionAbstract
- ⇄→public getName()$error['traces'][3]['args'][1]->getName()
Inherited from ReflectionFunctionAbstract
- ⇄→public getFileName()$error['traces'][3]['args'][1]->getFileName()
Inherited from ReflectionFunctionAbstract
- ⇄→public getExtensionName()$error['traces'][3]['args'][1]->getExtensionName()
Inherited from ReflectionFunctionAbstract
- ⇄→public getNumberOfRequiredParameters()$error['traces'][3]['args'][1]->getNumberOfRequiredParameters()
Inherited from ReflectionFunctionAbstract
- ⇄→public returnsReference()$error['traces'][3]['args'][1]->returnsReference()
Inherited from ReflectionFunctionAbstract
- ⇄→public getExtension()$error['traces'][3]['args'][1]->getExtension()
Inherited from ReflectionFunctionAbstract
- ⇄→public getStaticVariables()$error['traces'][3]['args'][1]->getStaticVariables()
Inherited from ReflectionFunctionAbstract
- ⇄→public getStartLine()$error['traces'][3]['args'][1]->getStartLine()
Inherited from ReflectionFunctionAbstract
- ⇄→public getShortName()$error['traces'][3]['args'][1]->getShortName()
Inherited from ReflectionFunctionAbstract
- ⇄→public getParameters()$error['traces'][3]['args'][1]->getParameters()
Inherited from ReflectionFunctionAbstract
- ⇄→public isClosure()$error['traces'][3]['args'][1]->isClosure()
Inherited from ReflectionFunctionAbstract
- ⇄→public isUserDefined()$error['traces'][3]['args'][1]->isUserDefined()
Inherited from ReflectionFunctionAbstract
- ⇄→public isInternal()$error['traces'][3]['args'][1]->isInternal()
Inherited from ReflectionFunctionAbstract
- ⇄→public isDeprecated()$error['traces'][3]['args'][1]->isDeprecated()
Inherited from ReflectionFunctionAbstract
- ⇄→public inNamespace()$error['traces'][3]['args'][1]->inNamespace()
Inherited from ReflectionFunctionAbstract
- ⇄→public getEndLine()$error['traces'][3]['args'][1]->getEndLine()
Inherited from ReflectionFunctionAbstract
- ⇄→public isGenerator()$error['traces'][3]['args'][1]->isGenerator()
Inherited from ReflectionFunctionAbstract
- ⇄→public getDocComment()$error['traces'][3]['args'][1]->getDocComment()
Inherited from ReflectionFunctionAbstract
- ⇄→public isVariadic()$error['traces'][3]['args'][1]->isVariadic()
Inherited from ReflectionFunctionAbstract
- ⇄→public getClosureScopeClass()$error['traces'][3]['args'][1]->getClosureScopeClass()
Inherited from ReflectionFunctionAbstract
- ⇄→public getClosureThis()$error['traces'][3]['args'][1]->getClosureThis()
Inherited from ReflectionFunctionAbstract
- →final private __clone()
Inherited from ReflectionFunctionAbstract
- ⇄public static export($class, $name, $return)\ReflectionMethod::export($class, $name, $return)
- ⇄public getModifiers()
- ⇄const IS_ABSTRACT :: integer 2\ReflectionMethod::IS_ABSTRACT
- ⇄const IS_FINAL :: integer 4\ReflectionMethod::IS_FINAL
- ⇄const IS_PRIVATE :: integer 1024\ReflectionMethod::IS_PRIVATE
- ⇄const IS_PROTECTED :: integer 512\ReflectionMethod::IS_PROTECTED
- ⇄const IS_PUBLIC :: integer 256\ReflectionMethod::IS_PUBLIC
- ⇄const IS_STATIC :: integer 1\ReflectionMethod::IS_STATIC
- ⇄const IS_ABSTRACT :: integer 2
/** * Display product * @param string $url product url */ Method [ <user> public method actionView ] { @@ /home/hostnew/recond.ua/www/protected/modules/store/controllers/FrontProductController.php 40 - 56 - Parameters [1] { Parameter #0 [ <required> $url ] } }
- ⇄→$params => array (1)$error['traces'][3]['args'][2]
- ⇄url => string (29) "fujitsu-wgyk160dd9_woyk160lct"$error['traces'][3]['args'][2]['url']
- ⇄url => string (29) "fujitsu-wgyk160dd9_woyk160lct"
- ⇄→$object => FrontProductController (21)
- ⇄→<ROOT>/framework/web/CController.php:308 CInlineAction->runWithParams($params)$error['traces'][4]
- Source
- Arguments
*/ public function runAction($action) { $priorAction=$this->_action; $this->_action=$action; if($this->beforeAction($action)) {
if($action->runWithParams($this->getActionParams())===false)$this->invalidActionParams($action); else $this->afterAction($action); } $this->_action=$priorAction; }- ⇄→$params => array (1)$error['traces'][4]['args'][0]
- ⇄url => string (29) "fujitsu-wgyk160dd9_woyk160lct"$error['traces'][4]['args'][0]['url']
- ⇄url => string (29) "fujitsu-wgyk160dd9_woyk160lct"
- ⇄→$params => array (1)
- ⇄→<ROOT>/framework/web/filters/CFilterChain.php:133 CController->runAction($action)$error['traces'][5]
- Source
- Arguments
if($this->offsetExists($this->filterIndex)) { $filter=$this->itemAt($this->filterIndex++); Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); $filter->filter($this); } else
$this->controller->runAction($this->action);} }- ⇄→$action => CInlineAction (4)$error['traces'][5]['args'][0]
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21)
- Properties (21)
- Available methods (100)
- Static class properties
- public breadcrumbs -> array (0)
- public defaultAction -> string (5) "index"
- public layout -> string (14) "//layouts/main"
- public menu -> array (0)
- public model -> null
- public pageDescription -> null
- public pageHeader -> null
- public pageKeywords -> null
- public sidebarContent -> string (0) ""
- →private _action -> CInlineAction (4) Recursion
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- →public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- →public actions(): array
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- →public actionView($url) Display product
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- →public setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- →public getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- →public addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- →public init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- →public filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- →public allowedActions(): string the actions that are always allowed separated by commas.
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- →public accessDenied($message = null) Denies the access of the user.
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- →public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- →public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- →public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- →public renderDynamicInternal($callback, $params) This method is internally used.
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- →public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- →public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- →public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- →public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- →public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- →public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- →public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- →public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- →public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- →public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- →public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- →public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- →public clearPageStates() Removes all page states.
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- →public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- →public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- →public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- →public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- →public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- →public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- →public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- →public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- →public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- →public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- →public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- →public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- →public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- →public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- →public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- →public __construct($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- →public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- →public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- →public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- →public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- →public setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- →public getRoute(): string the route (module ID, controller ID and action ID) of the current request.
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- →public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- →public getId(): string ID of the controller
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- →public getAction(): CAction the action currently being executed, null if no active action.
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- →public getModule(): CWebModule the module that this controller belongs to. It returns null
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- →public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- →public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- →public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- →public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- →public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- →public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- →public endCache() Ends fragment caching. This is an alias to {@link endWidget}.
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- →public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- →public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- →public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- →public endContent() Ends the rendering of content.
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- →public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- →public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- →public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][5]['args'][0]->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][5]['args'][0]->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][5]['args'][0]->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][5]['args'][0]->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][5]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][5]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][5]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][5]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][5]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][5]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][5]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][5]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][5]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][5]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][5]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][5]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][5]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][5]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][5]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][5]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][5]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][5]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][5]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][5]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][5]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][5]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][5]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][5]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→$action => CInlineAction (4)
- ⇄→<ROOT>/framework/web/filters/CFilter.php:40 CFilterChain->run()$error['traces'][6]
- Source
* if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ public function filter($filterChain) { if($this->preFilter($filterChain)) {
$filterChain->run();$this->postFilter($filterChain); } } /** * Initializes the filter. * This method is invoked after the filter properties are initialized
- ⇄→<ROOT>/framework/web/filters/CFilterChain.php:130 CFilter->filter($filterChain)$error['traces'][7]
- Source
- Arguments
*/ public function run() { if($this->offsetExists($this->filterIndex)) { $filter=$this->itemAt($this->filterIndex++); Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
$filter->filter($this);} else $this->controller->runAction($this->action); } }- ⇄→$filterChain => CFilterChain (8)$error['traces'][7]['args'][0]
- Properties (8)
- Available methods (47)
- Iterator (2)
- ⇄→public action -> CInlineAction (4)$error['traces'][7]['args'][0]->action
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Depth Limit
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][7]['args'][0]->action->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][7]['args'][0]->action->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][7]['args'][0]->action->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][7]['args'][0]->action->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][7]['args'][0]->action->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][7]['args'][0]->action->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][7]['args'][0]->action->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][7]['args'][0]->action->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][7]['args'][0]->action->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][7]['args'][0]->action->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][7]['args'][0]->action->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][7]['args'][0]->action->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][7]['args'][0]->action->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][7]['args'][0]->action->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][7]['args'][0]->action->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][7]['args'][0]->action->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][7]['args'][0]->action->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][7]['args'][0]->action->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->action->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->action->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][7]['args'][0]->action->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][7]['args'][0]->action->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][7]['args'][0]->action->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][7]['args'][0]->action->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][7]['args'][0]->action->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][7]['args'][0]->action->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][7]['args'][0]->action->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][7]['args'][0]->action->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→public controller -> FrontProductController (21)$error['traces'][7]['args'][0]->controller
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][7]['args'][0]->controller->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][7]['args'][0]->controller->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][7]['args'][0]->controller->layout
- ⇄public menu -> array (0)$error['traces'][7]['args'][0]->controller->menu
- ⇄public model -> null$error['traces'][7]['args'][0]->controller->model
- ⇄public pageDescription -> null$error['traces'][7]['args'][0]->controller->pageDescription
- ⇄public pageHeader -> null$error['traces'][7]['args'][0]->controller->pageHeader
- ⇄public pageKeywords -> null$error['traces'][7]['args'][0]->controller->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][7]['args'][0]->controller->sidebarContent
- →private _action -> CInlineAction (4) Depth Limit
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][7]['args'][0]->controller->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][7]['args'][0]->controller->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][7]['args'][0]->controller->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][7]['args'][0]->controller->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][7]['args'][0]->controller->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][7]['args'][0]->controller->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][7]['args'][0]->controller->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][7]['args'][0]->controller->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][7]['args'][0]->controller->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][7]['args'][0]->controller->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][7]['args'][0]->controller->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][7]['args'][0]->controller->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][7]['args'][0]->controller->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][7]['args'][0]->controller->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][7]['args'][0]->controller->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][7]['args'][0]->controller->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][7]['args'][0]->controller->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][7]['args'][0]->controller->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][7]['args'][0]->controller->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][7]['args'][0]->controller->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][7]['args'][0]->controller->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][7]['args'][0]->controller->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][7]['args'][0]->controller->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][7]['args'][0]->controller->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][7]['args'][0]->controller->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][7]['args'][0]->controller->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][7]['args'][0]->controller->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][7]['args'][0]->controller->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][7]['args'][0]->controller->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][7]['args'][0]->controller->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][7]['args'][0]->controller->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][7]['args'][0]->controller->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][7]['args'][0]->controller->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][7]['args'][0]->controller->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][7]['args'][0]->controller->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][7]['args'][0]->controller->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][7]['args'][0]->controller->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][7]['args'][0]->controller->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][7]['args'][0]->controller->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][7]['args'][0]->controller->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][7]['args'][0]->controller->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][7]['args'][0]->controller->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][7]['args'][0]->controller->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][7]['args'][0]->controller->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][7]['args'][0]->controller->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][7]['args'][0]->controller->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][7]['args'][0]->controller->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][7]['args'][0]->controller->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][7]['args'][0]->controller->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][7]['args'][0]->controller->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][7]['args'][0]->controller->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][7]['args'][0]->controller->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][7]['args'][0]->controller->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][7]['args'][0]->controller->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][7]['args'][0]->controller->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][7]['args'][0]->controller->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][7]['args'][0]->controller->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][7]['args'][0]->controller->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][7]['args'][0]->controller->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][7]['args'][0]->controller->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][7]['args'][0]->controller->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][7]['args'][0]->controller->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][7]['args'][0]->controller->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][7]['args'][0]->controller->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][7]['args'][0]->controller->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][7]['args'][0]->controller->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][7]['args'][0]->controller->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][7]['args'][0]->controller->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][7]['args'][0]->controller->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][7]['args'][0]->controller->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][7]['args'][0]->controller->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][7]['args'][0]->controller->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][7]['args'][0]->controller->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][7]['args'][0]->controller->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][7]['args'][0]->controller->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][7]['args'][0]->controller->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][7]['args'][0]->controller->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][7]['args'][0]->controller->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][7]['args'][0]->controller->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][7]['args'][0]->controller->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][7]['args'][0]->controller->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][7]['args'][0]->controller->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][7]['args'][0]->controller->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->controller->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][7]['args'][0]->controller->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->controller->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][7]['args'][0]->controller->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][7]['args'][0]->controller->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][7]['args'][0]->controller->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄public filterIndex -> integer 2$error['traces'][7]['args'][0]->filterIndex
- private _c -> integer 2
- →private _d -> array (2)
- →0 => CInlineFilter (3) Depth Limit
- →1 => DuplicateFilter (2) Depth Limit
- private _e -> null
- private _m -> null
- private _r -> boolean false
- ⇄→public action -> CInlineAction (4)
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...$error['traces'][7]['args'][0]->insertAt($index, $item)
/** * Inserts an item at the specified position. * This method overrides the parent implementation by adding * additional check for the item to be added. In particular, * only objects implementing {@link IFilter} can be added to the list. * @param integer $index the specified position. * @param mixed $item new item * @throws CException If the index specified exceeds the bound or the list is read-only, or the item is not an {@link IFilter} instance. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:110
- ⇄→public run() Executes the filter indexed at {@link filterIndex}. After this method is called,...$error['traces'][7]['args'][0]->run()
/** * Executes the filter indexed at {@link filterIndex}. * After this method is called, {@link filterIndex} will be automatically incremented by one. * This method is usually invoked in filters so that the filtering process * can continue and the action can be executed. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:124
- ⇄→public __construct($controller, $action) Constructor.new \CFilterChain($controller, $action)
/** * Constructor. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:42
- ⇄→public copyFrom($data) Copies iterable data into the list. Note, existing data in the list will be clea...$error['traces'][7]['args'][0]->copyFrom($data)
/** * Copies iterable data into the list. * Note, existing data in the list will be cleared first. * @param mixed $data the data to be copied from, must be an array or object implementing Traversable * @throws CException If data is neither an array nor a Traversable. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:261
- ⇄→public indexOf($item): integer the index of the item in the list (0 based), -1 if not found.$error['traces'][7]['args'][0]->indexOf($item)
/** * @param mixed $item the item * @return integer the index of the item in the list (0 based), -1 if not found. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:239
- ⇄→public contains($item): boolean whether the list contains the item$error['traces'][7]['args'][0]->contains($item)
/** * @param mixed $item the item * @return boolean whether the list contains the item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:230
- ⇄→public mergeWith($data) Merges iterable data into the map. New data will be appended to the end of the e...$error['traces'][7]['args'][0]->mergeWith($data)
/** * Merges iterable data into the map. * New data will be appended to the end of the existing data. * @param mixed $data the data to be merged with, must be an array or object implementing Traversable * @throws CException If data is neither an array nor an iterator. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:282
- ⇄→public offsetSet($offset, $item) Sets the item at the specified offset. This method is required by the interface ...$error['traces'][7]['args'][0]->offsetSet($offset, $item)
/** * Sets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to set item * @param mixed $item the item value */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:324
- ⇄→public offsetUnset($offset) Unsets the item at the specified offset. This method is required by the interfac...$error['traces'][7]['args'][0]->offsetUnset($offset)
/** * Unsets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to unset item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:340
- ⇄→public clear() Removes all items in the list.$error['traces'][7]['args'][0]->clear()
/** * Removes all items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:220
- ⇄→public offsetGet($offset): mixed the item at the offset Returns the item at the specified offset. This method is required by the interfa...$error['traces'][7]['args'][0]->offsetGet($offset)
/** * Returns the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to retrieve item. * @return mixed the item at the offset * @throws CException if the offset is invalid */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:313
- ⇄→public offsetExists($offset): boolean Returns whether there is an item at the specified offset. This method is require...$error['traces'][7]['args'][0]->offsetExists($offset)
/** * Returns whether there is an item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to check on * @return boolean */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:301
- ⇄→public toArray(): array the list of items in array$error['traces'][7]['args'][0]->toArray()
/** * @return array the list of items in array */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:250
- ⇄→public getIterator(): Iterator an iterator for traversing the items in the list. Returns an iterator for traversing the items in the list. This method is require...$error['traces'][7]['args'][0]->getIterator()
/** * Returns an iterator for traversing the items in the list. * This method is required by the interface IteratorAggregate. * @return Iterator an iterator for traversing the items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:88
- ⇄→public getReadOnly(): boolean whether this list is read-only or not. Defaults to false.$error['traces'][7]['args'][0]->getReadOnly()
/** * @return boolean whether this list is read-only or not. Defaults to false. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:70
- ⇄→public removeAt($index): mixed the removed item. Removes an item at the specified position.$error['traces'][7]['args'][0]->removeAt($index)
/** * Removes an item at the specified position. * @param integer $index the index of the item to be removed. * @return mixed the removed item. * @throws CException If the index specified exceeds the bound or the list is read-only */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:193
- ⇄→public getCount(): integer the number of items in the list Returns the number of items in the list.$error['traces'][7]['args'][0]->getCount()
/** * Returns the number of items in the list. * @return integer the number of items in the list */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:107
- ⇄→public count(): integer number of items in the list. Returns the number of items in the list. This method is required by Countable in...$error['traces'][7]['args'][0]->count()
/** * Returns the number of items in the list. * This method is required by Countable interface. * @return integer number of items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:98
- ⇄→public remove($item): integer the index at which the item is being removed Removes an item from the list. The list will first search for the item. The firs...$error['traces'][7]['args'][0]->remove($item)
/** * Removes an item from the list. * The list will first search for the item. * The first item found will be removed from the list. * @param mixed $item the item to be removed. * @return integer the index at which the item is being removed * @throws CException If the item does not exist */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:176
- ⇄→public itemAt($index): mixed the item at the index Returns the item at the specified offset. This method is exactly the same as {@l...$error['traces'][7]['args'][0]->itemAt($index)
/** * Returns the item at the specified offset. * This method is exactly the same as {@link offsetGet}. * @param integer $index the index of the item * @return mixed the item at the index * @throws CException if the index is out of the range */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:119
- ⇄→public add($item): integer the zero-based index at which the item is added Appends an item at the end of the list.$error['traces'][7]['args'][0]->add($item)
/** * Appends an item at the end of the list. * @param mixed $item new item * @return integer the zero-based index at which the item is added */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:135
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][7]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][7]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][7]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][7]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][7]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][7]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][7]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][7]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][7]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][7]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][7]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][7]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][7]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][7]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][7]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][7]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][7]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][7]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][7]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][7]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][7]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][7]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][7]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →protected setReadOnly($value)
/** * @param boolean $value whether this list is read-only or not */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:78
- ⇄→public static create($controller, $action, $filters): CFilterChain CFilterChain factory method. This method creates a CFilterChain instance.\CFilterChain::create($controller, $action, $filters)
/** * CFilterChain factory method. * This method creates a CFilterChain instance. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. * @param array $filters list of filters to be applied to the action. * @return CFilterChain */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:56
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...
- ⇄→0 => CInlineFilter (3)iterator_to_array($error['traces'][7]['args'][0])[0]
- Properties (3)
- Available methods (29)
- ⇄public name -> string (13) "accessControl"iterator_to_array($error['traces'][7]['args'][0])[0]->name
- private _e -> null
- private _m -> null
- ⇄public name -> string (13) "accessControl"
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...iterator_to_array($error['traces'][7]['args'][0])[0]->filter($filterChain)
/** * Performs the filtering. * This method calls the filter method defined in the controller class. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:55
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][7]['args'][0])[0]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][7]['args'][0])[0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][7]['args'][0])[0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][7]['args'][0])[0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][7]['args'][0])[0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][7]['args'][0])[0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][7]['args'][0])[0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][7]['args'][0])[0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][7]['args'][0])[0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][7]['args'][0])[0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][7]['args'][0])[0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][7]['args'][0])[0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][7]['args'][0])[0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][7]['args'][0])[0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][7]['args'][0])[0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][7]['args'][0])[0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][7]['args'][0])[0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][7]['args'][0])[0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][7]['args'][0])[0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][7]['args'][0])[0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][7]['args'][0])[0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][7]['args'][0])[0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][7]['args'][0])[0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][7]['args'][0])[0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][7]['args'][0])[0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:62
- ⇄→public static create($controller, $filterName): CInlineFilter the created instance Creates an inline filter instance. The creation is based on a string describing ...\CInlineFilter::create($controller, $filterName)
/** * Creates an inline filter instance. * The creation is based on a string describing the inline method name * and action names that the filter shall or shall not apply to. * @param CController $controller the controller who hosts the filter methods * @param string $filterName the filter name * @return CInlineFilter the created instance * @throws CException if the filter method does not exist */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:37
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...
- ⇄→1 => DuplicateFilter (2)iterator_to_array($error['traces'][7]['args'][0])[1]
- Properties (2)
- Available methods (28)
- private _e -> null
- private _m -> null
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...iterator_to_array($error['traces'][7]['args'][0])[1]->filter($filterChain)
/** * Performs the filtering. * The default implementation is to invoke {@link preFilter} * and {@link postFilter} which are meant to be overridden * child classes. If a child class needs to override this method, * make sure it calls <code>$filterChain->run()</code> * if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:36
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][7]['args'][0])[1]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][7]['args'][0])[1]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][7]['args'][0])[1]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][7]['args'][0])[1]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][7]['args'][0])[1]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][7]['args'][0])[1]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][7]['args'][0])[1]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][7]['args'][0])[1]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][7]['args'][0])[1]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][7]['args'][0])[1]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][7]['args'][0])[1]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][7]['args'][0])[1]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][7]['args'][0])[1]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][7]['args'][0])[1]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][7]['args'][0])[1]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][7]['args'][0])[1]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][7]['args'][0])[1]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][7]['args'][0])[1]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][7]['args'][0])[1]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][7]['args'][0])[1]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][7]['args'][0])[1]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][7]['args'][0])[1]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][7]['args'][0])[1]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][7]['args'][0])[1]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][7]['args'][0])[1]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Defined in <ROOT>/protected/components/DuplicateFilter.php:27
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...
- ⇄→0 => CInlineFilter (3)
- ⇄→$filterChain => CFilterChain (8)
- ⇄→<ROOT>/framework/web/filters/CFilter.php:40 CFilterChain->run()$error['traces'][8]
- Source
* if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ public function filter($filterChain) { if($this->preFilter($filterChain)) {
$filterChain->run();$this->postFilter($filterChain); } } /** * Initializes the filter. * This method is invoked after the filter properties are initialized
- ⇄→<ROOT>/framework/web/CController.php:1145 CFilter->filter($filterChain)$error['traces'][9]
- Source
- Arguments
* To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ public function filterAccessControl($filterChain) { $filter=new CAccessControlFilter; $filter->setRules($this->accessRules());
$filter->filter($filterChain);} /** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}.- ⇄→$filterChain => CFilterChain (8)$error['traces'][9]['args'][0]
- Properties (8)
- Available methods (47)
- Iterator (2)
- ⇄→public action -> CInlineAction (4)$error['traces'][9]['args'][0]->action
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Depth Limit
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][9]['args'][0]->action->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][9]['args'][0]->action->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][9]['args'][0]->action->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][9]['args'][0]->action->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][9]['args'][0]->action->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][9]['args'][0]->action->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][9]['args'][0]->action->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][9]['args'][0]->action->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][9]['args'][0]->action->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][9]['args'][0]->action->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][9]['args'][0]->action->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][9]['args'][0]->action->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][9]['args'][0]->action->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][9]['args'][0]->action->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][9]['args'][0]->action->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][9]['args'][0]->action->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][9]['args'][0]->action->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][9]['args'][0]->action->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->action->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->action->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][9]['args'][0]->action->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][9]['args'][0]->action->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][9]['args'][0]->action->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][9]['args'][0]->action->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][9]['args'][0]->action->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][9]['args'][0]->action->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][9]['args'][0]->action->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][9]['args'][0]->action->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→public controller -> FrontProductController (21)$error['traces'][9]['args'][0]->controller
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][9]['args'][0]->controller->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][9]['args'][0]->controller->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][9]['args'][0]->controller->layout
- ⇄public menu -> array (0)$error['traces'][9]['args'][0]->controller->menu
- ⇄public model -> null$error['traces'][9]['args'][0]->controller->model
- ⇄public pageDescription -> null$error['traces'][9]['args'][0]->controller->pageDescription
- ⇄public pageHeader -> null$error['traces'][9]['args'][0]->controller->pageHeader
- ⇄public pageKeywords -> null$error['traces'][9]['args'][0]->controller->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][9]['args'][0]->controller->sidebarContent
- →private _action -> CInlineAction (4) Depth Limit
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][9]['args'][0]->controller->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][9]['args'][0]->controller->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][9]['args'][0]->controller->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][9]['args'][0]->controller->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][9]['args'][0]->controller->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][9]['args'][0]->controller->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][9]['args'][0]->controller->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][9]['args'][0]->controller->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][9]['args'][0]->controller->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][9]['args'][0]->controller->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][9]['args'][0]->controller->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][9]['args'][0]->controller->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][9]['args'][0]->controller->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][9]['args'][0]->controller->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][9]['args'][0]->controller->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][9]['args'][0]->controller->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][9]['args'][0]->controller->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][9]['args'][0]->controller->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][9]['args'][0]->controller->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][9]['args'][0]->controller->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][9]['args'][0]->controller->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][9]['args'][0]->controller->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][9]['args'][0]->controller->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][9]['args'][0]->controller->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][9]['args'][0]->controller->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][9]['args'][0]->controller->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][9]['args'][0]->controller->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][9]['args'][0]->controller->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][9]['args'][0]->controller->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][9]['args'][0]->controller->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][9]['args'][0]->controller->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][9]['args'][0]->controller->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][9]['args'][0]->controller->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][9]['args'][0]->controller->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][9]['args'][0]->controller->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][9]['args'][0]->controller->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][9]['args'][0]->controller->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][9]['args'][0]->controller->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][9]['args'][0]->controller->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][9]['args'][0]->controller->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][9]['args'][0]->controller->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][9]['args'][0]->controller->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][9]['args'][0]->controller->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][9]['args'][0]->controller->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][9]['args'][0]->controller->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][9]['args'][0]->controller->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][9]['args'][0]->controller->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][9]['args'][0]->controller->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][9]['args'][0]->controller->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][9]['args'][0]->controller->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][9]['args'][0]->controller->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][9]['args'][0]->controller->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][9]['args'][0]->controller->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][9]['args'][0]->controller->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][9]['args'][0]->controller->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][9]['args'][0]->controller->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][9]['args'][0]->controller->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][9]['args'][0]->controller->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][9]['args'][0]->controller->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][9]['args'][0]->controller->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][9]['args'][0]->controller->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][9]['args'][0]->controller->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][9]['args'][0]->controller->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][9]['args'][0]->controller->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][9]['args'][0]->controller->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][9]['args'][0]->controller->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][9]['args'][0]->controller->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][9]['args'][0]->controller->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][9]['args'][0]->controller->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][9]['args'][0]->controller->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][9]['args'][0]->controller->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][9]['args'][0]->controller->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][9]['args'][0]->controller->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][9]['args'][0]->controller->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][9]['args'][0]->controller->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][9]['args'][0]->controller->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][9]['args'][0]->controller->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][9]['args'][0]->controller->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][9]['args'][0]->controller->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][9]['args'][0]->controller->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][9]['args'][0]->controller->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][9]['args'][0]->controller->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][9]['args'][0]->controller->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->controller->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][9]['args'][0]->controller->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->controller->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][9]['args'][0]->controller->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][9]['args'][0]->controller->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][9]['args'][0]->controller->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄public filterIndex -> integer 2$error['traces'][9]['args'][0]->filterIndex
- private _c -> integer 2
- →private _d -> array (2)
- →0 => CInlineFilter (3) Depth Limit
- →1 => DuplicateFilter (2) Depth Limit
- private _e -> null
- private _m -> null
- private _r -> boolean false
- ⇄→public action -> CInlineAction (4)
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...$error['traces'][9]['args'][0]->insertAt($index, $item)
/** * Inserts an item at the specified position. * This method overrides the parent implementation by adding * additional check for the item to be added. In particular, * only objects implementing {@link IFilter} can be added to the list. * @param integer $index the specified position. * @param mixed $item new item * @throws CException If the index specified exceeds the bound or the list is read-only, or the item is not an {@link IFilter} instance. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:110
- ⇄→public run() Executes the filter indexed at {@link filterIndex}. After this method is called,...$error['traces'][9]['args'][0]->run()
/** * Executes the filter indexed at {@link filterIndex}. * After this method is called, {@link filterIndex} will be automatically incremented by one. * This method is usually invoked in filters so that the filtering process * can continue and the action can be executed. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:124
- ⇄→public __construct($controller, $action) Constructor.new \CFilterChain($controller, $action)
/** * Constructor. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:42
- ⇄→public copyFrom($data) Copies iterable data into the list. Note, existing data in the list will be clea...$error['traces'][9]['args'][0]->copyFrom($data)
/** * Copies iterable data into the list. * Note, existing data in the list will be cleared first. * @param mixed $data the data to be copied from, must be an array or object implementing Traversable * @throws CException If data is neither an array nor a Traversable. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:261
- ⇄→public indexOf($item): integer the index of the item in the list (0 based), -1 if not found.$error['traces'][9]['args'][0]->indexOf($item)
/** * @param mixed $item the item * @return integer the index of the item in the list (0 based), -1 if not found. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:239
- ⇄→public contains($item): boolean whether the list contains the item$error['traces'][9]['args'][0]->contains($item)
/** * @param mixed $item the item * @return boolean whether the list contains the item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:230
- ⇄→public mergeWith($data) Merges iterable data into the map. New data will be appended to the end of the e...$error['traces'][9]['args'][0]->mergeWith($data)
/** * Merges iterable data into the map. * New data will be appended to the end of the existing data. * @param mixed $data the data to be merged with, must be an array or object implementing Traversable * @throws CException If data is neither an array nor an iterator. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:282
- ⇄→public offsetSet($offset, $item) Sets the item at the specified offset. This method is required by the interface ...$error['traces'][9]['args'][0]->offsetSet($offset, $item)
/** * Sets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to set item * @param mixed $item the item value */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:324
- ⇄→public offsetUnset($offset) Unsets the item at the specified offset. This method is required by the interfac...$error['traces'][9]['args'][0]->offsetUnset($offset)
/** * Unsets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to unset item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:340
- ⇄→public clear() Removes all items in the list.$error['traces'][9]['args'][0]->clear()
/** * Removes all items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:220
- ⇄→public offsetGet($offset): mixed the item at the offset Returns the item at the specified offset. This method is required by the interfa...$error['traces'][9]['args'][0]->offsetGet($offset)
/** * Returns the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to retrieve item. * @return mixed the item at the offset * @throws CException if the offset is invalid */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:313
- ⇄→public offsetExists($offset): boolean Returns whether there is an item at the specified offset. This method is require...$error['traces'][9]['args'][0]->offsetExists($offset)
/** * Returns whether there is an item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to check on * @return boolean */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:301
- ⇄→public toArray(): array the list of items in array$error['traces'][9]['args'][0]->toArray()
/** * @return array the list of items in array */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:250
- ⇄→public getIterator(): Iterator an iterator for traversing the items in the list. Returns an iterator for traversing the items in the list. This method is require...$error['traces'][9]['args'][0]->getIterator()
/** * Returns an iterator for traversing the items in the list. * This method is required by the interface IteratorAggregate. * @return Iterator an iterator for traversing the items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:88
- ⇄→public getReadOnly(): boolean whether this list is read-only or not. Defaults to false.$error['traces'][9]['args'][0]->getReadOnly()
/** * @return boolean whether this list is read-only or not. Defaults to false. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:70
- ⇄→public removeAt($index): mixed the removed item. Removes an item at the specified position.$error['traces'][9]['args'][0]->removeAt($index)
/** * Removes an item at the specified position. * @param integer $index the index of the item to be removed. * @return mixed the removed item. * @throws CException If the index specified exceeds the bound or the list is read-only */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:193
- ⇄→public getCount(): integer the number of items in the list Returns the number of items in the list.$error['traces'][9]['args'][0]->getCount()
/** * Returns the number of items in the list. * @return integer the number of items in the list */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:107
- ⇄→public count(): integer number of items in the list. Returns the number of items in the list. This method is required by Countable in...$error['traces'][9]['args'][0]->count()
/** * Returns the number of items in the list. * This method is required by Countable interface. * @return integer number of items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:98
- ⇄→public remove($item): integer the index at which the item is being removed Removes an item from the list. The list will first search for the item. The firs...$error['traces'][9]['args'][0]->remove($item)
/** * Removes an item from the list. * The list will first search for the item. * The first item found will be removed from the list. * @param mixed $item the item to be removed. * @return integer the index at which the item is being removed * @throws CException If the item does not exist */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:176
- ⇄→public itemAt($index): mixed the item at the index Returns the item at the specified offset. This method is exactly the same as {@l...$error['traces'][9]['args'][0]->itemAt($index)
/** * Returns the item at the specified offset. * This method is exactly the same as {@link offsetGet}. * @param integer $index the index of the item * @return mixed the item at the index * @throws CException if the index is out of the range */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:119
- ⇄→public add($item): integer the zero-based index at which the item is added Appends an item at the end of the list.$error['traces'][9]['args'][0]->add($item)
/** * Appends an item at the end of the list. * @param mixed $item new item * @return integer the zero-based index at which the item is added */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:135
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][9]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][9]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][9]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][9]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][9]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][9]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][9]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][9]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][9]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][9]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][9]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][9]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][9]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][9]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][9]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][9]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][9]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][9]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][9]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][9]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][9]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][9]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][9]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →protected setReadOnly($value)
/** * @param boolean $value whether this list is read-only or not */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:78
- ⇄→public static create($controller, $action, $filters): CFilterChain CFilterChain factory method. This method creates a CFilterChain instance.\CFilterChain::create($controller, $action, $filters)
/** * CFilterChain factory method. * This method creates a CFilterChain instance. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. * @param array $filters list of filters to be applied to the action. * @return CFilterChain */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:56
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...
- ⇄→0 => CInlineFilter (3)iterator_to_array($error['traces'][9]['args'][0])[0]
- Properties (3)
- Available methods (29)
- ⇄public name -> string (13) "accessControl"iterator_to_array($error['traces'][9]['args'][0])[0]->name
- private _e -> null
- private _m -> null
- ⇄public name -> string (13) "accessControl"
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...iterator_to_array($error['traces'][9]['args'][0])[0]->filter($filterChain)
/** * Performs the filtering. * This method calls the filter method defined in the controller class. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:55
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][9]['args'][0])[0]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][9]['args'][0])[0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][9]['args'][0])[0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][9]['args'][0])[0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][9]['args'][0])[0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][9]['args'][0])[0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][9]['args'][0])[0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][9]['args'][0])[0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][9]['args'][0])[0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][9]['args'][0])[0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][9]['args'][0])[0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][9]['args'][0])[0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][9]['args'][0])[0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][9]['args'][0])[0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][9]['args'][0])[0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][9]['args'][0])[0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][9]['args'][0])[0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][9]['args'][0])[0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][9]['args'][0])[0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][9]['args'][0])[0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][9]['args'][0])[0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][9]['args'][0])[0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][9]['args'][0])[0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][9]['args'][0])[0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][9]['args'][0])[0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:62
- ⇄→public static create($controller, $filterName): CInlineFilter the created instance Creates an inline filter instance. The creation is based on a string describing ...\CInlineFilter::create($controller, $filterName)
/** * Creates an inline filter instance. * The creation is based on a string describing the inline method name * and action names that the filter shall or shall not apply to. * @param CController $controller the controller who hosts the filter methods * @param string $filterName the filter name * @return CInlineFilter the created instance * @throws CException if the filter method does not exist */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:37
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...
- ⇄→1 => DuplicateFilter (2)iterator_to_array($error['traces'][9]['args'][0])[1]
- Properties (2)
- Available methods (28)
- private _e -> null
- private _m -> null
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...iterator_to_array($error['traces'][9]['args'][0])[1]->filter($filterChain)
/** * Performs the filtering. * The default implementation is to invoke {@link preFilter} * and {@link postFilter} which are meant to be overridden * child classes. If a child class needs to override this method, * make sure it calls <code>$filterChain->run()</code> * if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:36
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][9]['args'][0])[1]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][9]['args'][0])[1]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][9]['args'][0])[1]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][9]['args'][0])[1]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][9]['args'][0])[1]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][9]['args'][0])[1]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][9]['args'][0])[1]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][9]['args'][0])[1]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][9]['args'][0])[1]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][9]['args'][0])[1]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][9]['args'][0])[1]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][9]['args'][0])[1]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][9]['args'][0])[1]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][9]['args'][0])[1]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][9]['args'][0])[1]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][9]['args'][0])[1]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][9]['args'][0])[1]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][9]['args'][0])[1]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][9]['args'][0])[1]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][9]['args'][0])[1]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][9]['args'][0])[1]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][9]['args'][0])[1]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][9]['args'][0])[1]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][9]['args'][0])[1]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][9]['args'][0])[1]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Defined in <ROOT>/protected/components/DuplicateFilter.php:27
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...
- ⇄→0 => CInlineFilter (3)
- ⇄→$filterChain => CFilterChain (8)
- ⇄→<ROOT>/framework/web/filters/CInlineFilter.php:58 CController->filterAccessControl($filterChain)$error['traces'][10]
- Source
- Arguments
* Performs the filtering. * This method calls the filter method defined in the controller class. * @param CFilterChain $filterChain the filter chain that the filter is on. */ public function filter($filterChain) { $method='filter'.$this->name;
$filterChain->controller->$method($filterChain);} }- ⇄→$filterChain => CFilterChain (8)$error['traces'][10]['args'][0]
- Properties (8)
- Available methods (47)
- Iterator (2)
- ⇄→public action -> CInlineAction (4)$error['traces'][10]['args'][0]->action
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Depth Limit
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][10]['args'][0]->action->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][10]['args'][0]->action->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][10]['args'][0]->action->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][10]['args'][0]->action->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][10]['args'][0]->action->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][10]['args'][0]->action->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][10]['args'][0]->action->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][10]['args'][0]->action->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][10]['args'][0]->action->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][10]['args'][0]->action->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][10]['args'][0]->action->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][10]['args'][0]->action->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][10]['args'][0]->action->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][10]['args'][0]->action->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][10]['args'][0]->action->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][10]['args'][0]->action->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][10]['args'][0]->action->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][10]['args'][0]->action->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->action->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->action->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][10]['args'][0]->action->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][10]['args'][0]->action->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][10]['args'][0]->action->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][10]['args'][0]->action->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][10]['args'][0]->action->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][10]['args'][0]->action->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][10]['args'][0]->action->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][10]['args'][0]->action->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→public controller -> FrontProductController (21)$error['traces'][10]['args'][0]->controller
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][10]['args'][0]->controller->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][10]['args'][0]->controller->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][10]['args'][0]->controller->layout
- ⇄public menu -> array (0)$error['traces'][10]['args'][0]->controller->menu
- ⇄public model -> null$error['traces'][10]['args'][0]->controller->model
- ⇄public pageDescription -> null$error['traces'][10]['args'][0]->controller->pageDescription
- ⇄public pageHeader -> null$error['traces'][10]['args'][0]->controller->pageHeader
- ⇄public pageKeywords -> null$error['traces'][10]['args'][0]->controller->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][10]['args'][0]->controller->sidebarContent
- →private _action -> CInlineAction (4) Depth Limit
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][10]['args'][0]->controller->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][10]['args'][0]->controller->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][10]['args'][0]->controller->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][10]['args'][0]->controller->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][10]['args'][0]->controller->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][10]['args'][0]->controller->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][10]['args'][0]->controller->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][10]['args'][0]->controller->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][10]['args'][0]->controller->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][10]['args'][0]->controller->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][10]['args'][0]->controller->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][10]['args'][0]->controller->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][10]['args'][0]->controller->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][10]['args'][0]->controller->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][10]['args'][0]->controller->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][10]['args'][0]->controller->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][10]['args'][0]->controller->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][10]['args'][0]->controller->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][10]['args'][0]->controller->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][10]['args'][0]->controller->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][10]['args'][0]->controller->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][10]['args'][0]->controller->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][10]['args'][0]->controller->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][10]['args'][0]->controller->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][10]['args'][0]->controller->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][10]['args'][0]->controller->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][10]['args'][0]->controller->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][10]['args'][0]->controller->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][10]['args'][0]->controller->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][10]['args'][0]->controller->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][10]['args'][0]->controller->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][10]['args'][0]->controller->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][10]['args'][0]->controller->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][10]['args'][0]->controller->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][10]['args'][0]->controller->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][10]['args'][0]->controller->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][10]['args'][0]->controller->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][10]['args'][0]->controller->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][10]['args'][0]->controller->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][10]['args'][0]->controller->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][10]['args'][0]->controller->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][10]['args'][0]->controller->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][10]['args'][0]->controller->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][10]['args'][0]->controller->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][10]['args'][0]->controller->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][10]['args'][0]->controller->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][10]['args'][0]->controller->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][10]['args'][0]->controller->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][10]['args'][0]->controller->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][10]['args'][0]->controller->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][10]['args'][0]->controller->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][10]['args'][0]->controller->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][10]['args'][0]->controller->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][10]['args'][0]->controller->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][10]['args'][0]->controller->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][10]['args'][0]->controller->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][10]['args'][0]->controller->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][10]['args'][0]->controller->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][10]['args'][0]->controller->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][10]['args'][0]->controller->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][10]['args'][0]->controller->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][10]['args'][0]->controller->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][10]['args'][0]->controller->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][10]['args'][0]->controller->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][10]['args'][0]->controller->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][10]['args'][0]->controller->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][10]['args'][0]->controller->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][10]['args'][0]->controller->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][10]['args'][0]->controller->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][10]['args'][0]->controller->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][10]['args'][0]->controller->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][10]['args'][0]->controller->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][10]['args'][0]->controller->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][10]['args'][0]->controller->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][10]['args'][0]->controller->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][10]['args'][0]->controller->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][10]['args'][0]->controller->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][10]['args'][0]->controller->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][10]['args'][0]->controller->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][10]['args'][0]->controller->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][10]['args'][0]->controller->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][10]['args'][0]->controller->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][10]['args'][0]->controller->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->controller->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][10]['args'][0]->controller->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->controller->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][10]['args'][0]->controller->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][10]['args'][0]->controller->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][10]['args'][0]->controller->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄public filterIndex -> integer 2$error['traces'][10]['args'][0]->filterIndex
- private _c -> integer 2
- →private _d -> array (2)
- →0 => CInlineFilter (3) Depth Limit
- →1 => DuplicateFilter (2) Depth Limit
- private _e -> null
- private _m -> null
- private _r -> boolean false
- ⇄→public action -> CInlineAction (4)
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...$error['traces'][10]['args'][0]->insertAt($index, $item)
/** * Inserts an item at the specified position. * This method overrides the parent implementation by adding * additional check for the item to be added. In particular, * only objects implementing {@link IFilter} can be added to the list. * @param integer $index the specified position. * @param mixed $item new item * @throws CException If the index specified exceeds the bound or the list is read-only, or the item is not an {@link IFilter} instance. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:110
- ⇄→public run() Executes the filter indexed at {@link filterIndex}. After this method is called,...$error['traces'][10]['args'][0]->run()
/** * Executes the filter indexed at {@link filterIndex}. * After this method is called, {@link filterIndex} will be automatically incremented by one. * This method is usually invoked in filters so that the filtering process * can continue and the action can be executed. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:124
- ⇄→public __construct($controller, $action) Constructor.new \CFilterChain($controller, $action)
/** * Constructor. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:42
- ⇄→public copyFrom($data) Copies iterable data into the list. Note, existing data in the list will be clea...$error['traces'][10]['args'][0]->copyFrom($data)
/** * Copies iterable data into the list. * Note, existing data in the list will be cleared first. * @param mixed $data the data to be copied from, must be an array or object implementing Traversable * @throws CException If data is neither an array nor a Traversable. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:261
- ⇄→public indexOf($item): integer the index of the item in the list (0 based), -1 if not found.$error['traces'][10]['args'][0]->indexOf($item)
/** * @param mixed $item the item * @return integer the index of the item in the list (0 based), -1 if not found. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:239
- ⇄→public contains($item): boolean whether the list contains the item$error['traces'][10]['args'][0]->contains($item)
/** * @param mixed $item the item * @return boolean whether the list contains the item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:230
- ⇄→public mergeWith($data) Merges iterable data into the map. New data will be appended to the end of the e...$error['traces'][10]['args'][0]->mergeWith($data)
/** * Merges iterable data into the map. * New data will be appended to the end of the existing data. * @param mixed $data the data to be merged with, must be an array or object implementing Traversable * @throws CException If data is neither an array nor an iterator. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:282
- ⇄→public offsetSet($offset, $item) Sets the item at the specified offset. This method is required by the interface ...$error['traces'][10]['args'][0]->offsetSet($offset, $item)
/** * Sets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to set item * @param mixed $item the item value */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:324
- ⇄→public offsetUnset($offset) Unsets the item at the specified offset. This method is required by the interfac...$error['traces'][10]['args'][0]->offsetUnset($offset)
/** * Unsets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to unset item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:340
- ⇄→public clear() Removes all items in the list.$error['traces'][10]['args'][0]->clear()
/** * Removes all items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:220
- ⇄→public offsetGet($offset): mixed the item at the offset Returns the item at the specified offset. This method is required by the interfa...$error['traces'][10]['args'][0]->offsetGet($offset)
/** * Returns the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to retrieve item. * @return mixed the item at the offset * @throws CException if the offset is invalid */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:313
- ⇄→public offsetExists($offset): boolean Returns whether there is an item at the specified offset. This method is require...$error['traces'][10]['args'][0]->offsetExists($offset)
/** * Returns whether there is an item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to check on * @return boolean */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:301
- ⇄→public toArray(): array the list of items in array$error['traces'][10]['args'][0]->toArray()
/** * @return array the list of items in array */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:250
- ⇄→public getIterator(): Iterator an iterator for traversing the items in the list. Returns an iterator for traversing the items in the list. This method is require...$error['traces'][10]['args'][0]->getIterator()
/** * Returns an iterator for traversing the items in the list. * This method is required by the interface IteratorAggregate. * @return Iterator an iterator for traversing the items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:88
- ⇄→public getReadOnly(): boolean whether this list is read-only or not. Defaults to false.$error['traces'][10]['args'][0]->getReadOnly()
/** * @return boolean whether this list is read-only or not. Defaults to false. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:70
- ⇄→public removeAt($index): mixed the removed item. Removes an item at the specified position.$error['traces'][10]['args'][0]->removeAt($index)
/** * Removes an item at the specified position. * @param integer $index the index of the item to be removed. * @return mixed the removed item. * @throws CException If the index specified exceeds the bound or the list is read-only */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:193
- ⇄→public getCount(): integer the number of items in the list Returns the number of items in the list.$error['traces'][10]['args'][0]->getCount()
/** * Returns the number of items in the list. * @return integer the number of items in the list */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:107
- ⇄→public count(): integer number of items in the list. Returns the number of items in the list. This method is required by Countable in...$error['traces'][10]['args'][0]->count()
/** * Returns the number of items in the list. * This method is required by Countable interface. * @return integer number of items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:98
- ⇄→public remove($item): integer the index at which the item is being removed Removes an item from the list. The list will first search for the item. The firs...$error['traces'][10]['args'][0]->remove($item)
/** * Removes an item from the list. * The list will first search for the item. * The first item found will be removed from the list. * @param mixed $item the item to be removed. * @return integer the index at which the item is being removed * @throws CException If the item does not exist */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:176
- ⇄→public itemAt($index): mixed the item at the index Returns the item at the specified offset. This method is exactly the same as {@l...$error['traces'][10]['args'][0]->itemAt($index)
/** * Returns the item at the specified offset. * This method is exactly the same as {@link offsetGet}. * @param integer $index the index of the item * @return mixed the item at the index * @throws CException if the index is out of the range */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:119
- ⇄→public add($item): integer the zero-based index at which the item is added Appends an item at the end of the list.$error['traces'][10]['args'][0]->add($item)
/** * Appends an item at the end of the list. * @param mixed $item new item * @return integer the zero-based index at which the item is added */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:135
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][10]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][10]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][10]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][10]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][10]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][10]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][10]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][10]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][10]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][10]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][10]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][10]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][10]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][10]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][10]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][10]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][10]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][10]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][10]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][10]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][10]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][10]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][10]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →protected setReadOnly($value)
/** * @param boolean $value whether this list is read-only or not */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:78
- ⇄→public static create($controller, $action, $filters): CFilterChain CFilterChain factory method. This method creates a CFilterChain instance.\CFilterChain::create($controller, $action, $filters)
/** * CFilterChain factory method. * This method creates a CFilterChain instance. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. * @param array $filters list of filters to be applied to the action. * @return CFilterChain */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:56
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...
- ⇄→0 => CInlineFilter (3)iterator_to_array($error['traces'][10]['args'][0])[0]
- Properties (3)
- Available methods (29)
- ⇄public name -> string (13) "accessControl"iterator_to_array($error['traces'][10]['args'][0])[0]->name
- private _e -> null
- private _m -> null
- ⇄public name -> string (13) "accessControl"
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...iterator_to_array($error['traces'][10]['args'][0])[0]->filter($filterChain)
/** * Performs the filtering. * This method calls the filter method defined in the controller class. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:55
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][10]['args'][0])[0]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][10]['args'][0])[0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][10]['args'][0])[0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][10]['args'][0])[0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][10]['args'][0])[0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][10]['args'][0])[0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][10]['args'][0])[0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][10]['args'][0])[0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][10]['args'][0])[0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][10]['args'][0])[0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][10]['args'][0])[0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][10]['args'][0])[0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][10]['args'][0])[0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][10]['args'][0])[0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][10]['args'][0])[0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][10]['args'][0])[0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][10]['args'][0])[0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][10]['args'][0])[0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][10]['args'][0])[0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][10]['args'][0])[0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][10]['args'][0])[0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][10]['args'][0])[0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][10]['args'][0])[0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][10]['args'][0])[0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][10]['args'][0])[0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:62
- ⇄→public static create($controller, $filterName): CInlineFilter the created instance Creates an inline filter instance. The creation is based on a string describing ...\CInlineFilter::create($controller, $filterName)
/** * Creates an inline filter instance. * The creation is based on a string describing the inline method name * and action names that the filter shall or shall not apply to. * @param CController $controller the controller who hosts the filter methods * @param string $filterName the filter name * @return CInlineFilter the created instance * @throws CException if the filter method does not exist */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:37
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...
- ⇄→1 => DuplicateFilter (2)iterator_to_array($error['traces'][10]['args'][0])[1]
- Properties (2)
- Available methods (28)
- private _e -> null
- private _m -> null
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...iterator_to_array($error['traces'][10]['args'][0])[1]->filter($filterChain)
/** * Performs the filtering. * The default implementation is to invoke {@link preFilter} * and {@link postFilter} which are meant to be overridden * child classes. If a child class needs to override this method, * make sure it calls <code>$filterChain->run()</code> * if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:36
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][10]['args'][0])[1]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][10]['args'][0])[1]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][10]['args'][0])[1]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][10]['args'][0])[1]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][10]['args'][0])[1]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][10]['args'][0])[1]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][10]['args'][0])[1]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][10]['args'][0])[1]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][10]['args'][0])[1]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][10]['args'][0])[1]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][10]['args'][0])[1]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][10]['args'][0])[1]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][10]['args'][0])[1]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][10]['args'][0])[1]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][10]['args'][0])[1]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][10]['args'][0])[1]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][10]['args'][0])[1]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][10]['args'][0])[1]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][10]['args'][0])[1]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][10]['args'][0])[1]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][10]['args'][0])[1]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][10]['args'][0])[1]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][10]['args'][0])[1]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][10]['args'][0])[1]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][10]['args'][0])[1]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Defined in <ROOT>/protected/components/DuplicateFilter.php:27
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...
- ⇄→0 => CInlineFilter (3)
- ⇄→$filterChain => CFilterChain (8)
- ⇄→<ROOT>/framework/web/filters/CFilterChain.php:130 CInlineFilter->filter($filterChain)$error['traces'][11]
- Source
- Arguments
*/ public function run() { if($this->offsetExists($this->filterIndex)) { $filter=$this->itemAt($this->filterIndex++); Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
$filter->filter($this);} else $this->controller->runAction($this->action); } }- ⇄→$filterChain => CFilterChain (8)$error['traces'][11]['args'][0]
- Properties (8)
- Available methods (47)
- Iterator (2)
- ⇄→public action -> CInlineAction (4)$error['traces'][11]['args'][0]->action
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21) Depth Limit
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][11]['args'][0]->action->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][11]['args'][0]->action->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][11]['args'][0]->action->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][11]['args'][0]->action->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][11]['args'][0]->action->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][11]['args'][0]->action->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][11]['args'][0]->action->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][11]['args'][0]->action->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][11]['args'][0]->action->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][11]['args'][0]->action->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][11]['args'][0]->action->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][11]['args'][0]->action->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][11]['args'][0]->action->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][11]['args'][0]->action->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][11]['args'][0]->action->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][11]['args'][0]->action->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][11]['args'][0]->action->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][11]['args'][0]->action->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->action->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->action->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][11]['args'][0]->action->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][11]['args'][0]->action->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][11]['args'][0]->action->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][11]['args'][0]->action->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][11]['args'][0]->action->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][11]['args'][0]->action->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][11]['args'][0]->action->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][11]['args'][0]->action->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→public controller -> FrontProductController (21)$error['traces'][11]['args'][0]->controller
- Properties (21)
- Available methods (100)
- Static class properties
- ⇄public breadcrumbs -> array (0)$error['traces'][11]['args'][0]->controller->breadcrumbs
- ⇄public defaultAction -> string (5) "index"$error['traces'][11]['args'][0]->controller->defaultAction
- ⇄public layout -> string (14) "//layouts/main"$error['traces'][11]['args'][0]->controller->layout
- ⇄public menu -> array (0)$error['traces'][11]['args'][0]->controller->menu
- ⇄public model -> null$error['traces'][11]['args'][0]->controller->model
- ⇄public pageDescription -> null$error['traces'][11]['args'][0]->controller->pageDescription
- ⇄public pageHeader -> null$error['traces'][11]['args'][0]->controller->pageHeader
- ⇄public pageKeywords -> null$error['traces'][11]['args'][0]->controller->pageKeywords
- ⇄public sidebarContent -> string (0) ""$error['traces'][11]['args'][0]->controller->sidebarContent
- →private _action -> CInlineAction (4) Depth Limit
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- ⇄public breadcrumbs -> array (0)
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...$error['traces'][11]['args'][0]->controller->getConfigurableData()
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- ⇄→public actions(): array$error['traces'][11]['args'][0]->controller->actions()
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- ⇄→public actionView($url) Display product$error['traces'][11]['args'][0]->controller->actionView($url)
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- ⇄→public setPageTitle($title)$error['traces'][11]['args'][0]->controller->setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- ⇄→public getPageTitle()$error['traces'][11]['args'][0]->controller->getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- ⇄→public addFlashMessage($message)$error['traces'][11]['args'][0]->controller->addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- ⇄→public init()$error['traces'][11]['args'][0]->controller->init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- ⇄→public filters()$error['traces'][11]['args'][0]->controller->filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- ⇄→public allowedActions(): string the actions that are always allowed separated by commas.$error['traces'][11]['args'][0]->controller->allowedActions()
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- ⇄→public accessDenied($message = null) Denies the access of the user.$error['traces'][11]['args'][0]->controller->accessDenied($message = null)
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- ⇄→public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...$error['traces'][11]['args'][0]->controller->filterRights($filterChain)
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- ⇄→public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...$error['traces'][11]['args'][0]->controller->renderClip($name, $params = array(), $return = false)
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- ⇄→public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...$error['traces'][11]['args'][0]->controller->renderDynamic($callback)
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- ⇄→public renderDynamicInternal($callback, $params) This method is internally used.$error['traces'][11]['args'][0]->controller->renderDynamicInternal($callback, $params)
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- ⇄→public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.$error['traces'][11]['args'][0]->controller->getLayoutFile($layoutName)
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- ⇄→public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.$error['traces'][11]['args'][0]->controller->renderPartial($view, $data = null, $return = false, $processOutput = false)
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- ⇄→public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...$error['traces'][11]['args'][0]->controller->renderText($text, $return = false)
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- ⇄→public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...$error['traces'][11]['args'][0]->controller->resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null)
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- ⇄→public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...$error['traces'][11]['args'][0]->controller->getClips()
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- ⇄→public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...$error['traces'][11]['args'][0]->controller->forward($route, $exit = true)
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- ⇄→public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.$error['traces'][11]['args'][0]->controller->render($view, $data = null, $return = false)
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- ⇄→public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.$error['traces'][11]['args'][0]->controller->createUrl($route, $params = array(), $ampersand = '&')
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- ⇄→public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...$error['traces'][11]['args'][0]->controller->filterPostOnly($filterChain)
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- ⇄→public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...$error['traces'][11]['args'][0]->controller->filterAccessControl($filterChain)
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- ⇄→public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...$error['traces'][11]['args'][0]->controller->getPageState($name, $defaultValue = null)
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- ⇄→public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...$error['traces'][11]['args'][0]->controller->setPageState($name, $value, $defaultValue = null)
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- ⇄→public clearPageStates() Removes all page states.$error['traces'][11]['args'][0]->controller->clearPageStates()
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- ⇄→public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...$error['traces'][11]['args'][0]->controller->filterAjaxOnly($filterChain)
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- ⇄→public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.$error['traces'][11]['args'][0]->controller->getViewFile($viewName)
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- ⇄→public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...$error['traces'][11]['args'][0]->controller->refresh($terminate = true, $anchor = '')
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- ⇄→public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...$error['traces'][11]['args'][0]->controller->recordCachingAction($context, $method, $params)
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- ⇄→public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects$error['traces'][11]['args'][0]->controller->getCachingStack($createIfNull = true)
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- ⇄→public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.$error['traces'][11]['args'][0]->controller->isCachingStackEmpty()
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- ⇄→public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.$error['traces'][11]['args'][0]->controller->createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&')
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- ⇄→public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).$error['traces'][11]['args'][0]->controller->redirect($url, $terminate = true, $statusCode = 302)
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- ⇄→public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...$error['traces'][11]['args'][0]->controller->runAction($action)
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- ⇄→public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...$error['traces'][11]['args'][0]->controller->getActionParams()
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- ⇄→public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...$error['traces'][11]['args'][0]->controller->invalidActionParams($action)
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- ⇄→public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...$error['traces'][11]['args'][0]->controller->processDynamicOutput($output)
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- ⇄→public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...$error['traces'][11]['args'][0]->controller->runActionWithFilters($action, $filters)
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- ⇄→public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.$error['traces'][11]['args'][0]->controller->run($actionID)
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- ⇄→public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...$error['traces'][11]['args'][0]->controller->getViewPath()
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- ⇄→public __construct($id, $module = null)new \FrontProductController($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- ⇄→public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...$error['traces'][11]['args'][0]->controller->behaviors()
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- ⇄→public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...$error['traces'][11]['args'][0]->controller->accessRules()
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- ⇄→public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...$error['traces'][11]['args'][0]->controller->createAction($actionID)
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- ⇄→public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...$error['traces'][11]['args'][0]->controller->processOutput($output)
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- ⇄→public setAction($value)$error['traces'][11]['args'][0]->controller->setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- ⇄→public getRoute(): string the route (module ID, controller ID and action ID) of the current request.$error['traces'][11]['args'][0]->controller->getRoute()
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- ⇄→public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).$error['traces'][11]['args'][0]->controller->getUniqueId()
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- ⇄→public getId(): string ID of the controller$error['traces'][11]['args'][0]->controller->getId()
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- ⇄→public getAction(): CAction the action currently being executed, null if no active action.$error['traces'][11]['args'][0]->controller->getAction()
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- ⇄→public getModule(): CWebModule the module that this controller belongs to. It returns null$error['traces'][11]['args'][0]->controller->getModule()
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- ⇄→public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...$error['traces'][11]['args'][0]->controller->missingAction($actionID)
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- ⇄→public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...$error['traces'][11]['args'][0]->controller->createWidget($className, $properties = array())
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- ⇄→public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...$error['traces'][11]['args'][0]->controller->endWidget($id = '')
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- ⇄→public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...$error['traces'][11]['args'][0]->controller->beginWidget($className, $properties = array())
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- ⇄→public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...$error['traces'][11]['args'][0]->controller->beginClip($id, $properties = array())
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- ⇄→public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...$error['traces'][11]['args'][0]->controller->renderInternal($_viewFile_, $_data_ = null, $_return_ = false)
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- ⇄→public endCache() Ends fragment caching. This is an alias to {@link endWidget}.$error['traces'][11]['args'][0]->controller->endCache()
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- ⇄→public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.$error['traces'][11]['args'][0]->controller->beginContent($view = null, $data = array())
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- ⇄→public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.$error['traces'][11]['args'][0]->controller->endClip()
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- ⇄→public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...$error['traces'][11]['args'][0]->controller->beginCache($id, $properties = array())
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- ⇄→public endContent() Ends the rendering of content.$error['traces'][11]['args'][0]->controller->endContent()
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- ⇄→public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.$error['traces'][11]['args'][0]->controller->widget($className, $properties = array(), $captureOutput = false)
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- ⇄→public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.$error['traces'][11]['args'][0]->controller->renderFile($viewFile, $data = null, $return = false)
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][11]['args'][0]->controller->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][11]['args'][0]->controller->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][11]['args'][0]->controller->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][11]['args'][0]->controller->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][11]['args'][0]->controller->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][11]['args'][0]->controller->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][11]['args'][0]->controller->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][11]['args'][0]->controller->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][11]['args'][0]->controller->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][11]['args'][0]->controller->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][11]['args'][0]->controller->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][11]['args'][0]->controller->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][11]['args'][0]->controller->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][11]['args'][0]->controller->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][11]['args'][0]->controller->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][11]['args'][0]->controller->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][11]['args'][0]->controller->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][11]['args'][0]->controller->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->controller->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][11]['args'][0]->controller->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->controller->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][11]['args'][0]->controller->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][11]['args'][0]->controller->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][11]['args'][0]->controller->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄→public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- ⇄public filterIndex -> integer 2$error['traces'][11]['args'][0]->filterIndex
- private _c -> integer 2
- →private _d -> array (2)
- →0 => CInlineFilter (3) Depth Limit
- →1 => DuplicateFilter (2) Depth Limit
- private _e -> null
- private _m -> null
- private _r -> boolean false
- ⇄→public action -> CInlineAction (4)
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...$error['traces'][11]['args'][0]->insertAt($index, $item)
/** * Inserts an item at the specified position. * This method overrides the parent implementation by adding * additional check for the item to be added. In particular, * only objects implementing {@link IFilter} can be added to the list. * @param integer $index the specified position. * @param mixed $item new item * @throws CException If the index specified exceeds the bound or the list is read-only, or the item is not an {@link IFilter} instance. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:110
- ⇄→public run() Executes the filter indexed at {@link filterIndex}. After this method is called,...$error['traces'][11]['args'][0]->run()
/** * Executes the filter indexed at {@link filterIndex}. * After this method is called, {@link filterIndex} will be automatically incremented by one. * This method is usually invoked in filters so that the filtering process * can continue and the action can be executed. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:124
- ⇄→public __construct($controller, $action) Constructor.new \CFilterChain($controller, $action)
/** * Constructor. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:42
- ⇄→public copyFrom($data) Copies iterable data into the list. Note, existing data in the list will be clea...$error['traces'][11]['args'][0]->copyFrom($data)
/** * Copies iterable data into the list. * Note, existing data in the list will be cleared first. * @param mixed $data the data to be copied from, must be an array or object implementing Traversable * @throws CException If data is neither an array nor a Traversable. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:261
- ⇄→public indexOf($item): integer the index of the item in the list (0 based), -1 if not found.$error['traces'][11]['args'][0]->indexOf($item)
/** * @param mixed $item the item * @return integer the index of the item in the list (0 based), -1 if not found. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:239
- ⇄→public contains($item): boolean whether the list contains the item$error['traces'][11]['args'][0]->contains($item)
/** * @param mixed $item the item * @return boolean whether the list contains the item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:230
- ⇄→public mergeWith($data) Merges iterable data into the map. New data will be appended to the end of the e...$error['traces'][11]['args'][0]->mergeWith($data)
/** * Merges iterable data into the map. * New data will be appended to the end of the existing data. * @param mixed $data the data to be merged with, must be an array or object implementing Traversable * @throws CException If data is neither an array nor an iterator. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:282
- ⇄→public offsetSet($offset, $item) Sets the item at the specified offset. This method is required by the interface ...$error['traces'][11]['args'][0]->offsetSet($offset, $item)
/** * Sets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to set item * @param mixed $item the item value */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:324
- ⇄→public offsetUnset($offset) Unsets the item at the specified offset. This method is required by the interfac...$error['traces'][11]['args'][0]->offsetUnset($offset)
/** * Unsets the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to unset item */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:340
- ⇄→public clear() Removes all items in the list.$error['traces'][11]['args'][0]->clear()
/** * Removes all items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:220
- ⇄→public offsetGet($offset): mixed the item at the offset Returns the item at the specified offset. This method is required by the interfa...$error['traces'][11]['args'][0]->offsetGet($offset)
/** * Returns the item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to retrieve item. * @return mixed the item at the offset * @throws CException if the offset is invalid */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:313
- ⇄→public offsetExists($offset): boolean Returns whether there is an item at the specified offset. This method is require...$error['traces'][11]['args'][0]->offsetExists($offset)
/** * Returns whether there is an item at the specified offset. * This method is required by the interface ArrayAccess. * @param integer $offset the offset to check on * @return boolean */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:301
- ⇄→public toArray(): array the list of items in array$error['traces'][11]['args'][0]->toArray()
/** * @return array the list of items in array */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:250
- ⇄→public getIterator(): Iterator an iterator for traversing the items in the list. Returns an iterator for traversing the items in the list. This method is require...$error['traces'][11]['args'][0]->getIterator()
/** * Returns an iterator for traversing the items in the list. * This method is required by the interface IteratorAggregate. * @return Iterator an iterator for traversing the items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:88
- ⇄→public getReadOnly(): boolean whether this list is read-only or not. Defaults to false.$error['traces'][11]['args'][0]->getReadOnly()
/** * @return boolean whether this list is read-only or not. Defaults to false. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:70
- ⇄→public removeAt($index): mixed the removed item. Removes an item at the specified position.$error['traces'][11]['args'][0]->removeAt($index)
/** * Removes an item at the specified position. * @param integer $index the index of the item to be removed. * @return mixed the removed item. * @throws CException If the index specified exceeds the bound or the list is read-only */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:193
- ⇄→public getCount(): integer the number of items in the list Returns the number of items in the list.$error['traces'][11]['args'][0]->getCount()
/** * Returns the number of items in the list. * @return integer the number of items in the list */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:107
- ⇄→public count(): integer number of items in the list. Returns the number of items in the list. This method is required by Countable in...$error['traces'][11]['args'][0]->count()
/** * Returns the number of items in the list. * This method is required by Countable interface. * @return integer number of items in the list. */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:98
- ⇄→public remove($item): integer the index at which the item is being removed Removes an item from the list. The list will first search for the item. The firs...$error['traces'][11]['args'][0]->remove($item)
/** * Removes an item from the list. * The list will first search for the item. * The first item found will be removed from the list. * @param mixed $item the item to be removed. * @return integer the index at which the item is being removed * @throws CException If the item does not exist */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:176
- ⇄→public itemAt($index): mixed the item at the index Returns the item at the specified offset. This method is exactly the same as {@l...$error['traces'][11]['args'][0]->itemAt($index)
/** * Returns the item at the specified offset. * This method is exactly the same as {@link offsetGet}. * @param integer $index the index of the item * @return mixed the item at the index * @throws CException if the index is out of the range */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:119
- ⇄→public add($item): integer the zero-based index at which the item is added Appends an item at the end of the list.$error['traces'][11]['args'][0]->add($item)
/** * Appends an item at the end of the list. * @param mixed $item new item * @return integer the zero-based index at which the item is added */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:135
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][11]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][11]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][11]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][11]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][11]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][11]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][11]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][11]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][11]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][11]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][11]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][11]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][11]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][11]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][11]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][11]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][11]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][11]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][11]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][11]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][11]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][11]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][11]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →protected setReadOnly($value)
/** * @param boolean $value whether this list is read-only or not */ Inherited from CList Defined in <ROOT>/framework/collections/CList.php:78
- ⇄→public static create($controller, $action, $filters): CFilterChain CFilterChain factory method. This method creates a CFilterChain instance.\CFilterChain::create($controller, $action, $filters)
/** * CFilterChain factory method. * This method creates a CFilterChain instance. * @param CController $controller the controller who executes the action. * @param CAction $action the action being filtered by this chain. * @param array $filters list of filters to be applied to the action. * @return CFilterChain */ Defined in <ROOT>/framework/web/filters/CFilterChain.php:56
- ⇄→public insertAt($index, $item) Inserts an item at the specified position. This method overrides the parent impl...
- ⇄→0 => CInlineFilter (3)iterator_to_array($error['traces'][11]['args'][0])[0]
- Properties (3)
- Available methods (29)
- ⇄public name -> string (13) "accessControl"iterator_to_array($error['traces'][11]['args'][0])[0]->name
- private _e -> null
- private _m -> null
- ⇄public name -> string (13) "accessControl"
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...iterator_to_array($error['traces'][11]['args'][0])[0]->filter($filterChain)
/** * Performs the filtering. * This method calls the filter method defined in the controller class. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:55
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][11]['args'][0])[0]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][11]['args'][0])[0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][11]['args'][0])[0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][11]['args'][0])[0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][11]['args'][0])[0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][11]['args'][0])[0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][11]['args'][0])[0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][11]['args'][0])[0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][11]['args'][0])[0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][11]['args'][0])[0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][11]['args'][0])[0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][11]['args'][0])[0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][11]['args'][0])[0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][11]['args'][0])[0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][11]['args'][0])[0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][11]['args'][0])[0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][11]['args'][0])[0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][11]['args'][0])[0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][11]['args'][0])[0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][11]['args'][0])[0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][11]['args'][0])[0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][11]['args'][0])[0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][11]['args'][0])[0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][11]['args'][0])[0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][11]['args'][0])[0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:62
- ⇄→public static create($controller, $filterName): CInlineFilter the created instance Creates an inline filter instance. The creation is based on a string describing ...\CInlineFilter::create($controller, $filterName)
/** * Creates an inline filter instance. * The creation is based on a string describing the inline method name * and action names that the filter shall or shall not apply to. * @param CController $controller the controller who hosts the filter methods * @param string $filterName the filter name * @return CInlineFilter the created instance * @throws CException if the filter method does not exist */ Defined in <ROOT>/framework/web/filters/CInlineFilter.php:37
- ⇄→public filter($filterChain) Performs the filtering. This method calls the filter method defined in the contr...
- ⇄→1 => DuplicateFilter (2)iterator_to_array($error['traces'][11]['args'][0])[1]
- Properties (2)
- Available methods (28)
- private _e -> null
- private _m -> null
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...iterator_to_array($error['traces'][11]['args'][0])[1]->filter($filterChain)
/** * Performs the filtering. * The default implementation is to invoke {@link preFilter} * and {@link postFilter} which are meant to be overridden * child classes. If a child class needs to override this method, * make sure it calls <code>$filterChain->run()</code> * if the action should be executed. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:36
- ⇄→public init() Initializes the filter. This method is invoked after the filter properties are i...iterator_to_array($error['traces'][11]['args'][0])[1]->init()
/** * Initializes the filter. * This method is invoked after the filter properties are initialized * and before {@link preFilter} is called. * You may override this method to include some initialization logic. * @since 1.1.4 */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:52
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...iterator_to_array($error['traces'][11]['args'][0])[1]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...iterator_to_array($error['traces'][11]['args'][0])[1]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...iterator_to_array($error['traces'][11]['args'][0])[1]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...iterator_to_array($error['traces'][11]['args'][0])[1]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...iterator_to_array($error['traces'][11]['args'][0])[1]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.iterator_to_array($error['traces'][11]['args'][0])[1]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.iterator_to_array($error['traces'][11]['args'][0])[1]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...iterator_to_array($error['traces'][11]['args'][0])[1]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.iterator_to_array($error['traces'][11]['args'][0])[1]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...iterator_to_array($error['traces'][11]['args'][0])[1]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.iterator_to_array($error['traces'][11]['args'][0])[1]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.iterator_to_array($error['traces'][11]['args'][0])[1]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.iterator_to_array($error['traces'][11]['args'][0])[1]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...iterator_to_array($error['traces'][11]['args'][0])[1]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...iterator_to_array($error['traces'][11]['args'][0])[1]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][11]['args'][0])[1]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...iterator_to_array($error['traces'][11]['args'][0])[1]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....iterator_to_array($error['traces'][11]['args'][0])[1]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...iterator_to_array($error['traces'][11]['args'][0])[1]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.iterator_to_array($error['traces'][11]['args'][0])[1]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...iterator_to_array($error['traces'][11]['args'][0])[1]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.iterator_to_array($error['traces'][11]['args'][0])[1]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehaviors() Detaches all behaviors from the component.iterator_to_array($error['traces'][11]['args'][0])[1]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...iterator_to_array($error['traces'][11]['args'][0])[1]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected preFilter($filterChain): boolean whether the filtering process should continue and the action Performs the pre-action filtering.
/** * Performs the pre-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. * @return boolean whether the filtering process should continue and the action * should be executed. */ Defined in <ROOT>/protected/components/DuplicateFilter.php:27
- →protected postFilter($filterChain) Performs the post-action filtering.
/** * Performs the post-action filtering. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CFilter Defined in <ROOT>/framework/web/filters/CFilter.php:71
- ⇄→public filter($filterChain) Performs the filtering. The default implementation is to invoke {@link preFilter...
- ⇄→0 => CInlineFilter (3)
- ⇄→$filterChain => CFilterChain (8)
- ⇄→<ROOT>/framework/web/CController.php:291 CFilterChain->run()$error['traces'][12]
- Source
{ if(empty($filters)) $this->runAction($action); else { $priorAction=$this->_action; $this->_action=$action;
CFilterChain::create($this,$action,$filters)->run();$this->_action=$priorAction; } } /** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed
- ⇄→<ROOT>/framework/web/CController.php:265 CController->runActionWithFilters($action, $filters)$error['traces'][13]
- Source
- Arguments (2)
{ if(($action=$this->createAction($actionID))!==null) { if(($parent=$this->getModule())===null) $parent=Yii::app(); if($parent->beforeControllerAction($this,$action)) {
$this->runActionWithFilters($action,$this->filters());$parent->afterControllerAction($this,$action); } } else $this->missingAction($actionID); }- ⇄→$action => CInlineAction (4)$error['traces'][13]['args'][0]
- Properties (4)
- Available methods (30)
- →private _controller -> FrontProductController (21)
- Properties (21)
- Available methods (100)
- Static class properties
- public breadcrumbs -> array (0)
- public defaultAction -> string (5) "index"
- public layout -> string (14) "//layouts/main"
- public menu -> array (0)
- public model -> null
- public pageDescription -> null
- public pageHeader -> null
- public pageKeywords -> null
- public sidebarContent -> string (0) ""
- →private _action -> CInlineAction (4) Recursion
- private _cachingStack -> null
- private _clips -> null
- private _dynamicOutput -> null
- private _e -> null
- private _id -> string (12) "frontProduct"
- private _m -> null
- →private _module -> StoreModule (22) Depth Limit
- private _pageStates -> null
- private _pageTitle -> null
- private _pageTitle -> null
- private _widgetStack -> array (0)
- →public getConfigurableData(): array Get data to render dropdowns for configurable product. Used on product view. arr...
/** * Get data to render dropdowns for configurable product. * Used on product view. * array( * 'attributes' // Array of StoreAttribute models used for configurations * 'prices' // Key/value array with configurations prices array(product_id=>price) * 'data' // Array to render dropdowns. array(color=>array('Green'=>'1/3/5/', 'Silver'=>'7/')) * ) * @todo Optimize. Cache queries. * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:91
- →public actions(): array
/** * @return array */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:27
- →public actionView($url) Display product
/** * Display product * @param string $url product url */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:40
- →public setPageTitle($title)
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:83
- →public getPageTitle()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:89
- →public addFlashMessage($message)
/** * @param $message */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:73
- →public init()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:40
- →public filters()
Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:45
- →public allowedActions(): string the actions that are always allowed separated by commas.
/** * @return string the actions that are always allowed separated by commas. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:53
- →public accessDenied($message = null) Denies the access of the user.
/** * Denies the access of the user. * @param string $message the message to display to the user. * This method may be invoked when access check fails. * @throws CHttpException when called unless login is required. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:64
- →public filterRights($filterChain) The filter method for 'rights' access filter. This filter is a wrapper of {@link...
/** * The filter method for 'rights' access filter. * This filter is a wrapper of {@link CAccessControlFilter}. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from RController Defined in <ROOT>/protected/modules/rights/components/RController.php:43
- →public renderClip($name, $params = array(), $return = false): mixed either the clip content or null Renders a named clip with the supplied parameters. This is similar to directly a...
/** * Renders a named clip with the supplied parameters. * This is similar to directly accessing the {@link clips} property. * The main difference is that it can take an array of named parameters * which will replace the corresponding placeholders in the clip. * @param string $name the name of the clip * @param array $params an array of named parameters (name=>value) that should replace * their corresponding placeholders in the clip * @param boolean $return whether to return the clip content or echo it. * @return mixed either the clip content or null * @since 1.1.8 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:894
- →public renderDynamic($callback) Renders dynamic content returned by the specified callback. This method is used ...
/** * Renders dynamic content returned by the specified callback. * This method is used together with {@link COutputCache}. Dynamic contents * will always show as their latest state even if the content surrounding them is being cached. * This is especially useful when caching pages that are mostly static but contain some small * dynamic regions, such as username or current time. * We can use this method to render these dynamic regions to ensure they are always up-to-date. * * The first parameter to this method should be a valid PHP callback, while the rest parameters * will be passed to the callback. * * Note, the callback and its parameter values will be serialized and saved in cache. * Make sure they are serializable. * * @param callback $callback a PHP callback which returns the needed dynamic content. * When the callback is specified as a string, it will be first assumed to be a method of the current * controller class. If the method does not exist, it is assumed to be a global PHP function. * Note, the callback should return the dynamic content instead of echoing it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:923
- →public renderDynamicInternal($callback, $params) This method is internally used.
/** * This method is internally used. * @param callback $callback a PHP callback which returns the needed dynamic content. * @param array $params parameters passed to the PHP callback * @see renderDynamic */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:938
- →public getLayoutFile($layoutName): string the view file for the layout. False if the view file cannot be found Looks for the layout view script based on the layout name.
/** * Looks for the layout view script based on the layout name. * * The layout name can be specified in one of the following ways: * * <ul> * <li>layout is false: returns false, meaning no layout.</li> * <li>layout is null: the currently active module's layout will be used. If there is no active module, * the application's layout will be used.</li> * <li>a regular view name.</li> * </ul> * * The resolution of the view file based on the layout view is similar to that in {@link getViewFile}. * In particular, the following rules are followed: * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>When a theme is currently active, this method will call {@link CTheme::getLayoutFile} to determine * which view file should be returned.</li> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * module's layout path. In case when there is no active module, the view will be searched for * under the application's layout path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param mixed $layoutName layout name * @return string the view file for the layout. False if the view file cannot be found */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:633
- →public renderPartial($view, $data = null, $return = false, $processOutput = false): string the rendering result. Null if the rendering result is not required. Renders a view.
/** * Renders a view. * * The named view refers to a PHP script (resolved via {@link getViewFile}) * that is included by this method. If $data is an associative array, * it will be extracted as PHP variables and made available to the script. * * This method differs from {@link render()} in that it does not * apply a layout to the rendered result. It is thus mostly used * in rendering a partial view, or an AJAX response. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users * @param boolean $processOutput whether the rendering result should be postprocessed using {@link processOutput}. * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view does not exist * @see getViewFile * @see processOutput * @see render */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:865
- →public renderText($text, $return = false): string the rendering result. Null if the rendering result is not required. Renders a static text string. The string will be inserted in the current control...
/** * Renders a static text string. * The string will be inserted in the current controller layout and returned back. * @param string $text the static text string * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:830
- →public resolveViewFile($viewName, $viewPath, $basePath, $moduleViewPath = null): mixed the view file path. False if the view file does not exist. Finds a view file based on its name. The view name can be in one of the followin...
/** * Finds a view file based on its name. * The view name can be in one of the following formats: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * For absolute view and relative view, the corresponding view file is a PHP file * whose name is the same as the view name. The file is located under a specified directory. * This method will call {@link CApplication::findLocalizedFile} to search for a localized file, if any. * @param string $viewName the view name * @param string $viewPath the directory that is used to search for a relative view name * @param string $basePath the directory that is used to search for an absolute view name under the application * @param string $moduleViewPath the directory that is used to search for an absolute view name under the current module. * If this is not set, the application base view path will be used. * @return mixed the view file path. False if the view file does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:687
- →public getClips(): CMap the list of clips Returns the list of clips. A clip is a named piece of rendering result that can ...
/** * Returns the list of clips. * A clip is a named piece of rendering result that can be * inserted at different places. * @return CMap the list of clips * @see CClipWidget */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:726
- →public forward($route, $exit = true) Processes the request using another controller action. This is like {@link redir...
/** * Processes the request using another controller action. * This is like {@link redirect}, but the user browser's URL remains unchanged. * In most cases, you should call {@link redirect} instead of this method. * @param string $route the route of the new controller action. This can be an action ID, or a complete route * with module ID (optional in the current module), controller ID and action ID. If the former, the action is assumed * to be located within the current controller. * @param boolean $exit whether to end the application after this call. Defaults to true. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:744
- →public render($view, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view with a layout.
/** * Renders a view with a layout. * * This method first calls {@link renderPartial} to render the view (called content view). * It then renders the layout view which may embed the content view at appropriate place. * In the layout view, the content view rendering result can be accessed via variable * <code>$content</code>. At the end, it calls {@link processOutput} to insert scripts * and dynamic contents if they are available. * * By default, the layout view script is "protected/views/layouts/main.php". * This may be customized by changing {@link layout}. * * @param string $view name of the view to be rendered. See {@link getViewFile} for details * about how the view script is resolved. * @param array $data data to be extracted into PHP variables and made available to the view script * @param boolean $return whether the rendering result should be returned instead of being displayed to end users. * @return string the rendering result. Null if the rendering result is not required. * @see renderPartial * @see getLayoutFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:778
- →public createUrl($route, $params = array(), $ampersand = '&'): string the constructed URL Creates a relative URL for the specified action defined in this controller.
/** * Creates a relative URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerID is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * If the controller belongs to a module, the {@link CWebModule::getId module ID} * will be prefixed to the route. (If you do not want the module ID prefix, the route should start with a slash '/'.) * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * If the name is '#', the corresponding value will be treated as an anchor * and will be appended at the end of the URL. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:959
- →public filterPostOnly($filterChain) The filter method for 'postOnly' filter. This filter throws an exception (CHttpE...
/** * The filter method for 'postOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-POST request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not a POST request */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1113
- →public filterAccessControl($filterChain) The filter method for 'accessControl' filter. This filter is a wrapper of {@link...
/** * The filter method for 'accessControl' filter. * This filter is a wrapper of {@link CAccessControlFilter}. * To use this filter, you must override {@link accessRules} method. * @param CFilterChain $filterChain the filter chain that the filter is on. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1141
- →public getPageState($name, $defaultValue = null): mixed the page state value Returns a persistent page state value. A page state is a variable that is persis...
/** * Returns a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $defaultValue the value to be returned if the named state is not found * @return mixed the page state value * @see setPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1159
- →public setPageState($name, $value, $defaultValue = null) Saves a persistent page state value. A page state is a variable that is persiste...
/** * Saves a persistent page state value. * A page state is a variable that is persistent across POST requests of the same page. * In order to use persistent page states, the form(s) must be stateful * which are generated using {@link CHtml::statefulForm}. * @param string $name the state name * @param mixed $value the page state value * @param mixed $defaultValue the default page state value. If this is the same as * the given value, the state will be removed from persistent storage. * @see getPageState * @see CHtml::statefulForm */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1178
- →public clearPageStates() Removes all page states.
/** * Removes all page states. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1194
- →public filterAjaxOnly($filterChain) The filter method for 'ajaxOnly' filter. This filter throws an exception (CHttpE...
/** * The filter method for 'ajaxOnly' filter. * This filter throws an exception (CHttpException with code 400) if the applied action is receiving a non-AJAX request. * @param CFilterChain $filterChain the filter chain that the filter is on. * @throws CHttpException if the current request is not an AJAX request. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1127
- →public getViewFile($viewName): string the view file path, false if the view file does not exist Looks for the view file according to the given view name.
/** * Looks for the view file according to the given view name. * * When a theme is currently active, this method will call {@link CTheme::getViewFile} to determine * which view file should be returned. * * Otherwise, this method will return the corresponding view file based on the following criteria: * <ul> * <li>absolute view within a module: the view name starts with a single slash '/'. * In this case, the view will be searched for under the currently active module's view path. * If there is no active module, the view will be searched for under the application's view path.</li> * <li>absolute view within the application: the view name starts with double slashes '//'. * In this case, the view will be searched for under the application's view path. * This syntax has been available since version 1.1.3.</li> * <li>aliased view: the view name contains dots and refers to a path alias. * The view file is determined by calling {@link YiiBase::getPathOfAlias()}. Note that aliased views * cannot be themed because they can refer to a view file located at arbitrary places.</li> * <li>relative view: otherwise. Relative views will be searched for under the currently active * controller's view path.</li> * </ul> * * After the view file is identified, this method may further call {@link CApplication::findLocalizedFile} * to find its localized version if internationalization is needed. * * @param string $viewName view name * @return string the view file path, false if the view file does not exist * @see resolveViewFile * @see CApplication::findLocalizedFile */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:584
- →public refresh($terminate = true, $anchor = '') Refreshes the current page. The effect of this method call is the same as user p...
/** * Refreshes the current page. * The effect of this method call is the same as user pressing the * refresh button on the browser (without post data). * @param boolean $terminate whether to terminate the current application after calling this method * @param string $anchor the anchor that should be appended to the redirection URL. * Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1041
- →public recordCachingAction($context, $method, $params) Records a method call when an output cache is in effect. When the content is ser...
/** * Records a method call when an output cache is in effect. * When the content is served from the output cache, the recorded * method will be re-invoked. * @param string $context a property name of the controller. It refers to an object * whose method is being called. If empty it means the controller itself. * @param string $method the method name * @param array $params parameters passed to the method * @see COutputCache */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1056
- →public getCachingStack($createIfNull = true): CStack stack of {@link COutputCache} objects
/** * @param boolean $createIfNull whether to create a stack if it does not exist yet. Defaults to true. * @return CStack stack of {@link COutputCache} objects */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1069
- →public isCachingStackEmpty(): boolean whether the caching stack is empty. If not empty, it means currently there are Returns whether the caching stack is empty.
/** * Returns whether the caching stack is empty. * @return boolean whether the caching stack is empty. If not empty, it means currently there are * some output cache in effect. Note, the return result of this method may change when it is * called in different output regions, depending on the partition of output caches. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1082
- →public createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&'): string the constructed URL Creates an absolute URL for the specified action defined in this controller.
/** * Creates an absolute URL for the specified action defined in this controller. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * If the ControllerPath is not present, the current controller ID will be prefixed to the route. * If the route is empty, it is assumed to be the current action. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:980
- →public redirect($url, $terminate = true, $statusCode = 302) Redirects the browser to the specified URL or route (controller/action).
/** * Redirects the browser to the specified URL or route (controller/action). * @param mixed $url the URL to be redirected to. If the parameter is an array, * the first element must be a route to a controller action and the rest * are GET parameters in name-value pairs. * @param boolean $terminate whether to terminate the current application after calling this method. Defaults to true. * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} * for details about HTTP status code. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1023
- →public runAction($action) Runs the action after passing through all filters. This method is invoked by {@l...
/** * Runs the action after passing through all filters. * This method is invoked by {@link runActionWithFilters} after all possible filters have been executed * and the action starts to run. * @param CAction $action action to run */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:302
- →public getActionParams(): array the request parameters to be used for action parameter binding Returns the request parameters that will be used for action parameter binding. B...
/** * Returns the request parameters that will be used for action parameter binding. * By default, this method will return $_GET. You may override this method if you * want to use other request parameters (e.g. $_GET+$_POST). * @return array the request parameters to be used for action parameter binding * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:323
- →public invalidActionParams($action) This method is invoked when the request parameters do not satisfy the requiremen...
/** * This method is invoked when the request parameters do not satisfy the requirement of the specified action. * The default implementation will throw a 400 HTTP exception. * @param CAction $action the action being executed * @since 1.1.7 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:334
- →public processDynamicOutput($output): string the processed output Postprocesses the dynamic output. This method is internally used. Do not call th...
/** * Postprocesses the dynamic output. * This method is internally used. Do not call this method directly. * @param string $output output to be processed * @return string the processed output */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:374
- →public runActionWithFilters($action, $filters) Runs an action with the specified filters. A filter chain will be created based ...
/** * Runs an action with the specified filters. * A filter chain will be created based on the specified filters * and the action will be executed then. * @param CAction $action the action to be executed. * @param array $filters list of filters to be applied to the action. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:283
- →public run($actionID) Runs the named action. Filters specified via {@link filters()} will be applied.
/** * Runs the named action. * Filters specified via {@link filters()} will be applied. * @param string $actionID action ID * @throws CHttpException if the action does not exist or the action name is not proper. * @see filters * @see createAction * @see runAction */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:257
- →public getViewPath(): string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. Returns the directory containing view files for this controller. The default imp...
/** * Returns the directory containing view files for this controller. * The default implementation returns 'protected/views/ControllerID'. * Child classes may override this method to use customized view path. * If the controller belongs to a module, the default view path * is the {@link CWebModule::getViewPath module view path} appended with the controller ID. * @return string the directory containing the view files for this controller. Defaults to 'protected/views/ControllerID'. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:548
- →public __construct($id, $module = null)
/** * @param string $id id of this controller * @param CWebModule $module the module that this controller belongs to. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:110
- →public behaviors(): array the behavior configurations (behavior name=>behavior configuration) Returns a list of behaviors that this controller should behave as. The return va...
/** * Returns a list of behaviors that this controller should behave as. * The return value should be an array of behavior configurations indexed by * behavior names. Each behavior configuration can be either a string specifying * the behavior class or an array of the following structure: * <pre> * 'behaviorName'=>array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * * Note, the behavior classes must implement {@link IBehavior} or extend from * {@link CBehavior}. Behaviors declared in this method will be attached * to the controller when it is instantiated. * * For more details about behaviors, see {@link CComponent}. * @return array the behavior configurations (behavior name=>behavior configuration) */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:233
- →public accessRules(): array list of access rules. See {@link CAccessControlFilter} for details about rule specification. Returns the access rules for this controller. Override this method if you use th...
/** * Returns the access rules for this controller. * Override this method if you use the {@link filterAccessControl accessControl} filter. * @return array list of access rules. See {@link CAccessControlFilter} for details about rule specification. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:243
- →public createAction($actionID): CAction the action instance, null if the action does not exist. Creates the action instance based on the action name. The action can be either a...
/** * Creates the action instance based on the action name. * The action can be either an inline action or an object. * The latter is created by looking up the action map specified in {@link actions}. * @param string $actionID ID of the action. If empty, the {@link defaultAction default action} will be used. * @return CAction the action instance, null if the action does not exist. * @see actions */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:409
- →public processOutput($output): string the output that has been processed. Postprocesses the output generated by {@link render()}. This method is invoked a...
/** * Postprocesses the output generated by {@link render()}. * This method is invoked at the end of {@link render()} and {@link renderText()}. * If there are registered client scripts, this method will insert them into the output * at appropriate places. If there are dynamic contents, they will also be inserted. * This method may also save the persistent page states in hidden fields of * stateful forms in the page. * @param string $output the output generated by the current action * @return string the output that has been processed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:349
- →public setAction($value)
/** * @param CAction $value the action currently being executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:498
- →public getRoute(): string the route (module ID, controller ID and action ID) of the current request.
/** * @return string the route (module ID, controller ID and action ID) of the current request. * @since 1.1.0 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:523
- →public getUniqueId(): string the controller ID that is prefixed with the module ID (if any).
/** * @return string the controller ID that is prefixed with the module ID (if any). */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:514
- →public getId(): string ID of the controller
/** * @return string ID of the controller */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:506
- →public getAction(): CAction the action currently being executed, null if no active action.
/** * @return CAction the action currently being executed, null if no active action. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:490
- →public getModule(): CWebModule the module that this controller belongs to. It returns null
/** * @return CWebModule the module that this controller belongs to. It returns null * if the controller does not belong to any module */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:535
- →public missingAction($actionID) Handles the request whose action is not recognized. This method is invoked when ...
/** * Handles the request whose action is not recognized. * This method is invoked when the controller cannot find the requested action. * The default implementation simply throws an exception. * @param string $actionID the missing action name * @throws CHttpException whenever this method is invoked */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:481
- →public createWidget($className, $properties = array()): CWidget the fully initialized widget instance. Creates a widget and initializes it. This method first creates the specified wid...
/** * Creates a widget and initializes it. * This method first creates the specified widget instance. * It then configures the widget's properties with the given initial values. * At the end it calls {@link CWidget::init} to initialize the widget. * Starting from version 1.1, if a {@link CWidgetFactory widget factory} is enabled, * this method will use the factory to create the widget, instead. * @param string $className class name (can be in path alias format) * @param array $properties initial property values * @return CWidget the fully initialized widget instance. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:144
- →public endWidget($id = ''): CWidget the widget just ended running Ends the execution of the named widget. This method is used together with {@link...
/** * Ends the execution of the named widget. * This method is used together with {@link beginWidget()}. * @param string $id optional tag identifying the method call for debugging purpose. * @return CWidget the widget just ended running * @throws CException if an extra endWidget call is made * @see beginWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:210
- →public beginWidget($className, $properties = array()): CWidget the widget created to run Creates a widget and executes it. This method is similar to {@link widget()} exc...
/** * Creates a widget and executes it. * This method is similar to {@link widget()} except that it is expecting * a {@link endWidget()} call to end the execution. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @return CWidget the widget created to run * @see endWidget */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:195
- →public beginClip($id, $properties = array()) Begins recording a clip. This method is a shortcut to beginning {@link CClipWidg...
/** * Begins recording a clip. * This method is a shortcut to beginning {@link CClipWidget}. * @param string $id the clip ID. * @param array $properties initial property values for {@link CClipWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:228
- →public renderInternal($_viewFile_, $_data_ = null, $_return_ = false): string the rendering result. Null if the rendering result is not required. Renders a view file. This method includes the view file as a PHP script and capt...
/** * Renders a view file. * This method includes the view file as a PHP script * and captures the display result if required. * @param string $_viewFile_ view file * @param array $_data_ data to be extracted and made available to the view file * @param boolean $_return_ whether the rendering result should be returned as a string * @return string the rendering result. Null if the rendering result is not required. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:115
- →public endCache() Ends fragment caching. This is an alias to {@link endWidget}.
/** * Ends fragment caching. * This is an alias to {@link endWidget}. * @see beginCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:279
- →public beginContent($view = null, $data = array()) Begins the rendering of content that is to be decorated by the specified view.
/** * Begins the rendering of content that is to be decorated by the specified view. * @param mixed $view the name of the view that will be used to decorate the content. The actual view script * is resolved via {@link getViewFile}. If this parameter is null (default), * the default layout will be used as the decorative view. * Note that if the current controller does not belong to * any module, the default layout refers to the application's {@link CWebApplication::layout default layout}; * If the controller belongs to a module, the default layout refers to the module's * {@link CWebModule::layout default layout}. * @param array $data the variables (name=>value) to be extracted and made available in the decorative view. * @see endContent * @see CContentDecorator */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:297
- →public endClip() Ends recording a clip. This method is an alias to {@link endWidget}.
/** * Ends recording a clip. * This method is an alias to {@link endWidget}. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:238
- →public beginCache($id, $properties = array()): boolean whether we need to generate content for caching. False if cached version is available. Begins fragment caching. This method will display cached content if it is availa...
/** * Begins fragment caching. * This method will display cached content if it is availabe. * If not, it will start caching and would expect a {@link endCache()} * call to end the cache and save the content into cache. * A typical usage of fragment caching is as follows, * <pre> * if($this->beginCache($id)) * { * // ...generate content here * $this->endCache(); * } * </pre> * @param string $id a unique ID identifying the fragment to be cached. * @param array $properties initial property values for {@link COutputCache}. * @return boolean whether we need to generate content for caching. False if cached version is available. * @see endCache */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:261
- →public endContent() Ends the rendering of content.
/** * Ends the rendering of content. * @see beginContent */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:306
- →public widget($className, $properties = array(), $captureOutput = false): mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. Creates a widget and executes it.
/** * Creates a widget and executes it. * @param string $className the widget class name or class in dot syntax (e.g. application.widgets.MyWidget) * @param array $properties list of initial property values for the widget (Property Name => Property Value) * @param boolean $captureOutput whether to capture the output of the widget. If true, the method will capture * and return the output generated by the widget. If false, the output will be directly sent for display * and the widget object will be returned. This parameter is available since version 1.1.2. * @return mixed the widget instance when $captureOutput is false, or the widget output when $captureOutput is true. */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:160
- →public renderFile($viewFile, $data = null, $return = false): string the rendering result. Null if the rendering result is not required. Renders a view file.
/** * Renders a view file. * * @param string $viewFile view file path * @param array $data data to be extracted and made available to the view * @param boolean $return whether the rendering result should be returned instead of being echoed * @return string the rendering result. Null if the rendering result is not required. * @throws CException if the view file does not exist */ Inherited from CBaseController Defined in <ROOT>/framework/web/CBaseController.php:89
- →public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- →public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- →public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- →public disableBehaviors() Disables all behaviors attached to this component.
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- →public enableBehaviors() Enables all behaviors attached to this component.
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- →public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- →public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- →public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- →public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- →public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- →public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- →public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- →public attachEventHandler($name, $handler) Attaches an event handler to an event.
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- →public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- →public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- →public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- →public detachBehaviors() Detaches all behaviors from the component.
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- →public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- →public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- →public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- →public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- →public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- →public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- →protected _loadModel($url): StoreProduct Load StoreProduct model by url
/** * Load StoreProduct model by url * @param $url * @return StoreProduct * @throws CHttpException */ Defined in <ROOT>/protected/modules/store/controllers/FrontProductController.php:65
- →protected setDesign($model, $view): string Set layout and view
/** * Set layout and view * @param mixed $model * @param string $view Default view name * @return string */ Inherited from Controller Defined in <ROOT>/protected/components/Controller.php:57
- →protected loadPageStates(): array the loaded page states Loads page states from a hidden input.
/** * Loads page states from a hidden input. * @return array the loaded page states */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1203
- →protected afterAction($action) This method is invoked right after an action is executed. You may override this ...
/** * This method is invoked right after an action is executed. * You may override this method to do some postprocessing for the action. * @param CAction $action the action just executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1103
- →protected savePageStates($states, &$output) Saves page states as a base64 string.
/** * Saves page states as a base64 string. * @param array $states the states to be saved. * @param string $output the output to be modified. Note, this is passed by reference. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1223
- →protected afterRender($view, &$output) This method is invoked after the specified view is rendered by calling {@link re...
/** * This method is invoked after the specified view is rendered by calling {@link render()}. * Note that this method is invoked BEFORE {@link processOutput()}. * You may override this method to do some postprocessing for the view rendering. * @param string $view the view that has been rendered * @param string $output the rendering result of the view. Note that this parameter is passed * as a reference. That means you can modify it within this method. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:818
- →protected beforeRender($view): boolean whether the view should be rendered. This method is invoked at the beginning of {@link render()}. You may override th...
/** * This method is invoked at the beginning of {@link render()}. * You may override this method to do some preprocessing when rendering a view. * @param string $view the view to be rendered * @return boolean whether the view should be rendered. * @since 1.1.5 */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:804
- →protected createActionFromMap($actionMap, $actionID, $requestActionID, $config = array()): CAction the action instance, null if the action does not exist. Creates the action instance based on the action map. This method will check to s...
/** * Creates the action instance based on the action map. * This method will check to see if the action ID appears in the given * action map. If so, the corresponding configuration will be used to * create the action instance. * @param array $actionMap the action map * @param string $actionID the action ID that has its prefix stripped off * @param string $requestActionID the originally requested action ID * @param array $config the action configuration that should be applied on top of the configuration specified in the map * @return CAction the action instance, null if the action does not exist. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:435
- →protected replaceDynamicOutput($matches): string the replacement Replaces the dynamic content placeholders with actual content. This is a callbac...
/** * Replaces the dynamic content placeholders with actual content. * This is a callback function used internally. * @param array $matches matches * @return string the replacement * @see processOutput */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:390
- →protected beforeAction($action): boolean whether the action should be executed. This method is invoked right before an action is to be executed (after all possi...
/** * This method is invoked right before an action is to be executed (after all possible filters.) * You may override this method to do last-minute preparation for the action. * @param CAction $action the action to be executed. * @return boolean whether the action should be executed. */ Inherited from CController Defined in <ROOT>/framework/web/CController.php:1093
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"\FrontProductController::STATE_INPUT_NAME
- ⇄const STATE_INPUT_NAME :: string (14) "YII_PAGE_STATE"
- private _e -> null
- private _id -> string (4) "view"
- private _m -> null
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...$error['traces'][13]['args'][0]->run()
/** * Runs the action. * The action method defined in the controller is invoked. * This method is required by {@link CAction}. */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:28
- ⇄→public runWithParams($params): boolean whether the request parameters are valid Runs the action with the supplied request parameters. This method is internally ...$error['traces'][13]['args'][0]->runWithParams($params)
/** * Runs the action with the supplied request parameters. * This method is internally called by {@link CController::runAction()}. * @param array $params the request parameters (name=>value) * @return boolean whether the request parameters are valid * @since 1.1.7 */ Defined in <ROOT>/framework/web/actions/CInlineAction.php:41
- ⇄→public getController(): CController the controller who owns this action.$error['traces'][13]['args'][0]->getController()
/** * @return CController the controller who owns this action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:50
- ⇄→public getId(): string id of this action$error['traces'][13]['args'][0]->getId()
/** * @return string id of this action */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:58
- ⇄→public __construct($controller, $id) Constructor.new \CInlineAction($controller, $id)
/** * Constructor. * @param CController $controller the controller who owns this action. * @param string $id id of the action. */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:41
- ⇄→public canGetProperty($name): boolean whether the property can be read Determines whether a property can be read. A property can be read if the class h...$error['traces'][13]['args'][0]->canGetProperty($name)
/** * Determines whether a property can be read. * A property can be read if the class has a getter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be read * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:421
- ⇄→public canSetProperty($name): boolean whether the property can be written Determines whether a property can be set. A property can be written if the class...$error['traces'][13]['args'][0]->canSetProperty($name)
/** * Determines whether a property can be set. * A property can be written if the class has a setter method * for the property name. Note, property name is case-insensitive. * @param string $name the property name * @return boolean whether the property can be written * @see canGetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:434
- ⇄→public hasProperty($name): boolean whether the property is defined Determines whether a property is defined. A property is defined if there is a ge...$error['traces'][13]['args'][0]->hasProperty($name)
/** * Determines whether a property is defined. * A property is defined if there is a getter or setter method * defined in the class. Note, property names are case-insensitive. * @param string $name the property name * @return boolean whether the property is defined * @see canGetProperty * @see canSetProperty */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:408
- ⇄→public disableBehavior($name) Disables an attached behavior. A behavior is only effective when it is enabled.$error['traces'][13]['args'][0]->disableBehavior($name)
/** * Disables an attached behavior. * A behavior is only effective when it is enabled. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:393
- ⇄→public hasEvent($name): boolean whether an event is defined Determines whether an event is defined. An event is defined if the class has a m...$error['traces'][13]['args'][0]->hasEvent($name)
/** * Determines whether an event is defined. * An event is defined if the class has a method named like 'onXXX'. * Note, event name is case-insensitive. * @param string $name the event name * @return boolean whether an event is defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:446
- ⇄→public attachEventHandler($name, $handler) Attaches an event handler to an event.$error['traces'][13]['args'][0]->attachEventHandler($name, $handler)
/** * Attaches an event handler to an event. * * An event handler must be a valid PHP callback, i.e., a string referring to * a global function name, or an array containing two elements with * the first element being an object and the second element a method name * of the object. * * An event handler must be defined with the following signature, * <pre> * function handlerName($event) {} * </pre> * where $event includes parameters associated with the event. * * This is a convenient method of attaching a handler to an event. * It is equivalent to the following code: * <pre> * $component->getEventHandlers($eventName)->add($eventHandler); * </pre> * * Using {@link getEventHandlers}, one can also specify the execution order * of multiple handlers attaching to the same event. For example: * <pre> * $component->getEventHandlers($eventName)->insertAt(0,$eventHandler); * </pre> * makes the handler to be invoked first. * * @param string $name the event name * @param callback $handler the event handler * @throws CException if the event is not defined * @see detachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:514
- ⇄→public raiseEvent($name, $event) Raises an event. This method represents the happening of an event. It invokes al...$error['traces'][13]['args'][0]->raiseEvent($name, $event)
/** * Raises an event. * This method represents the happening of an event. It invokes * all attached handlers for the event. * @param string $name the event name * @param CEvent $event the event parameter * @throws CException if the event is undefined or an event handler is invalid. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:543
- ⇄→public evaluateExpression($_expression_, $_data_ = array()): mixed the expression result Evaluates a PHP expression or callback under the context of this component.$error['traces'][13]['args'][0]->evaluateExpression($_expression_, $_data_ = array())
/** * Evaluates a PHP expression or callback under the context of this component. * * Valid PHP callback can be class method name in the form of * array(ClassName/Object, MethodName), or anonymous function (only available in PHP 5.3.0 or above). * * If a PHP callback is used, the corresponding function/method signature should be * <pre> * function foo($param1, $param2, ..., $component) { ... } * </pre> * where the array elements in the second parameter to this method will be passed * to the callback as $param1, $param2, ...; and the last parameter will be the component itself. * * If a PHP expression is used, the second parameter will be "extracted" into PHP variables * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} * for more details. In the expression, the component object can be accessed using $this. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. * * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. * @param array $_data_ additional parameters to be passed to the above expression/callback. * @return mixed the expression result * @since 1.1.0 */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:607
- ⇄→public detachEventHandler($name, $handler): boolean if the detachment process is successful Detaches an existing event handler. This method is the opposite of {@link attach...$error['traces'][13]['args'][0]->detachEventHandler($name, $handler)
/** * Detaches an existing event handler. * This method is the opposite of {@link attachEventHandler}. * @param string $name event name * @param callback $handler the event handler to be removed * @return boolean if the detachment process is successful * @see attachEventHandler */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:527
- ⇄→public enableBehavior($name) Enables an attached behavior. A behavior is only effective when it is enabled. A...$error['traces'][13]['args'][0]->enableBehavior($name)
/** * Enables an attached behavior. * A behavior is only effective when it is enabled. * A behavior is enabled when first attached. * @param string $name the behavior's name. It uniquely identifies the behavior. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:382
- ⇄→public getEventHandlers($name): CList list of attached event handlers for the event Returns the list of attached event handlers for an event.$error['traces'][13]['args'][0]->getEventHandlers($name)
/** * Returns the list of attached event handlers for an event. * @param string $name the event name * @return CList list of attached event handlers for the event * @throws CException if the event is not defined */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:468
- ⇄→public hasEventHandler($name): boolean whether an event has been attached one or several handlers Checks whether the named event has attached handlers.$error['traces'][13]['args'][0]->hasEventHandler($name)
/** * Checks whether the named event has attached handlers. * @param string $name the event name * @return boolean whether an event has been attached one or several handlers */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:456
- ⇄→public attachBehavior($name, $behavior): IBehavior the behavior object Attaches a behavior to this component. This method will create the behavior obje...$error['traces'][13]['args'][0]->attachBehavior($name, $behavior)
/** * Attaches a behavior to this component. * This method will create the behavior object based on the given * configuration. After that, the behavior object will be initialized * by calling its {@link IBehavior::attach} method. * @param string $name the behavior's name. It should uniquely identify this behavior. * @param mixed $behavior the behavior configuration. This is passed as the first * parameter to {@link YiiBase::createComponent} to create the behavior object. * You can also pass an already created behavior instance (the new behavior will replace an already created * behavior with the same name, if it exists). * @return IBehavior the behavior object */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:326
- ⇄→public __unset($name): mixed Sets a component property to be null. Do not call this method. This is a PHP mag...$error['traces'][13]['args'][0]->__unset($name)
/** * Sets a component property to be null. * Do not call this method. This is a PHP magic method that we override * to allow using unset() to set a component property to be null. * @param string $name the property name or the event name * @throws CException if the property is read only. * @return mixed */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:215
- ⇄→public __isset($name): boolean Checks if a property value is null. Do not call this method. This is a PHP magic...$error['traces'][13]['args'][0]->__isset($name)
/** * Checks if a property value is null. * Do not call this method. This is a PHP magic method that we override * to allow using isset() to detect if a component property is set or not. * @param string $name the property name or the event name * @return boolean */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:184
- ⇄→public __set($name, $value): mixed Sets value of a component property. Do not call this method. This is a PHP magic...$error['traces'][13]['args'][0]->__set($name, $value)
/** * Sets value of a component property. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to set a property or attach an event handler * <pre> * $this->propertyName=$value; * $this->eventName=$callback; * </pre> * @param string $name the property name or the event name * @param mixed $value the property value or callback * @return mixed * @throws CException if the property/event is not defined or the property is read only. * @see __get */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:148
- ⇄→public __get($name): mixed the property value, event handlers attached to the event, or the named behavior Returns a property value, an event handler list or a behavior based on its name....$error['traces'][13]['args'][0]->__get($name)
/** * Returns a property value, an event handler list or a behavior based on its name. * Do not call this method. This is a PHP magic method that we override * to allow using the following syntax to read a property or obtain event handlers: * <pre> * $value=$component->propertyName; * $handlers=$component->eventName; * </pre> * @param string $name the property name or event name * @return mixed the property value, event handlers attached to the event, or the named behavior * @throws CException if the property or event is not defined * @see __set */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:107
- ⇄→public __call($name, $parameters): mixed the method return value Calls the named method which is not a class method. Do not call this method. Thi...$error['traces'][13]['args'][0]->__call($name, $parameters)
/** * Calls the named method which is not a class method. * Do not call this method. This is a PHP magic method that we override * to implement the behavior feature. * @param string $name the method name * @param array $parameters method parameters * @throws CException if current class and its behaviors do not have a method or closure with the given name * @return mixed the method return value */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:254
- ⇄→public asa($behavior): IBehavior the behavior object, or null if the behavior does not exist Returns the named behavior object. The name 'asa' stands for 'as a'.$error['traces'][13]['args'][0]->asa($behavior)
/** * Returns the named behavior object. * The name 'asa' stands for 'as a'. * @param string $behavior the behavior name * @return IBehavior the behavior object, or null if the behavior does not exist */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:276
- ⇄→public enableBehaviors() Enables all behaviors attached to this component.$error['traces'][13]['args'][0]->enableBehaviors()
/** * Enables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:355
- ⇄→public detachBehavior($name): IBehavior the detached behavior. Null if the behavior does not exist. Detaches a behavior from the component. The behavior's {@link IBehavior::detach}...$error['traces'][13]['args'][0]->detachBehavior($name)
/** * Detaches a behavior from the component. * The behavior's {@link IBehavior::detach} method will be invoked. * @param string $name the behavior's name. It uniquely identifies the behavior. * @return IBehavior the detached behavior. Null if the behavior does not exist. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:341
- ⇄→public detachBehaviors() Detaches all behaviors from the component.$error['traces'][13]['args'][0]->detachBehaviors()
/** * Detaches all behaviors from the component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:304
- ⇄→public disableBehaviors() Disables all behaviors attached to this component.$error['traces'][13]['args'][0]->disableBehaviors()
/** * Disables all behaviors attached to this component. */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:367
- ⇄→public attachBehaviors($behaviors) Attaches a list of behaviors to the component. Each behavior is indexed by its n...$error['traces'][13]['args'][0]->attachBehaviors($behaviors)
/** * Attaches a list of behaviors to the component. * Each behavior is indexed by its name and should be an instance of * {@link IBehavior}, a string specifying the behavior class, or an * array of the following structure: * <pre> * array( * 'class'=>'path.to.BehaviorClass', * 'property1'=>'value1', * 'property2'=>'value2', * ) * </pre> * @param array $behaviors list of behaviors to be attached to the component */ Inherited from CComponent Defined in <ROOT>/framework/base/CComponent.php:295
- →protected runWithParamsInternal($object, $method, $params): boolean whether the named parameters are valid Executes a method of an object with the supplied named parameters. This method i...
/** * Executes a method of an object with the supplied named parameters. * This method is internally used. * @param mixed $object the object whose method is to be executed * @param ReflectionMethod $method the method reflection * @param array $params the named parameters * @return boolean whether the named parameters are valid * @since 1.1.7 */ Inherited from CAction Defined in <ROOT>/framework/web/actions/CAction.php:89
- ⇄→public run() Runs the action. The action method defined in the controller is invoked. This me...
- ⇄→$filters => array (2)$error['traces'][13]['args'][1]
- ⇄0 => string (13) "accessControl"$error['traces'][13]['args'][1][0]
- ⇄→1 => array (1)$error['traces'][13]['args'][1][1]
- ⇄0 => string (15) "DuplicateFilter"$error['traces'][13]['args'][1][1][0]
- ⇄0 => string (15) "DuplicateFilter"
- ⇄0 => string (13) "accessControl"
- ⇄→$action => CInlineAction (4)
- ⇄→<ROOT>/framework/web/CWebApplication.php:282 CController->run($actionID)$error['traces'][14]
- Source
- Arguments
{ if(($ca=$this->createController($route))!==null) { list($controller,$actionID)=$ca; $oldController=$this->_controller; $this->_controller=$controller; $controller->init();
$controller->run($actionID);$this->_controller=$oldController; } else throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', array('{route}'=>$route===''?$this->defaultController:$route))); }- ⇄$actionID => string (4) "view"$error['traces'][14]['args'][0]
- ⇄$actionID => string (4) "view"
- ⇄→<ROOT>/framework/web/CWebApplication.php:141 CWebApplication->runController($route)$error['traces'][15]
- Source
- Arguments
{ $route=$this->catchAllRequest[0]; foreach(array_splice($this->catchAllRequest,1) as $name=>$value) $_GET[$name]=$value; } else $route=$this->getUrlManager()->parseUrl($this->getRequest());
$this->runController($route);} /** * Registers the core application components. * This method overrides the parent implementation by registering additional core components. * @see setComponents */- ⇄$route => string (23) "store/frontProduct/view"$error['traces'][15]['args'][0]
- ⇄$route => string (23) "store/frontProduct/view"
- ⇄→<ROOT>/framework/base/CApplication.php:185 CWebApplication->processRequest()$error['traces'][16]
- Source
* Remember to call the parent implementation so that static application components are loaded. */ public function run() { if($this->hasEventHandler('onBeginRequest')) $this->onBeginRequest(new CEvent($this)); register_shutdown_function(array($this,'end'),0,false);
$this->processRequest();if($this->hasEventHandler('onEndRequest')) $this->onEndRequest(new CEvent($this)); } /** * Terminates the application. * This method replaces PHP's exit() function by calling
- ⇄→<ROOT>/index.php:25 CApplication->run()$error['traces'][17]
- Source
require $yii; require_once 'kint.php'; require 'protected/components/SWebApplication.php'; error_reporting(E_ALL|E_STRICT); // Create application
Yii::createApplication('SWebApplication', $config)->run();
- ⇄→<ROOT>/protected/modules/store/controllers/FrontProductController.php:42 FrontProductController->_loadModel($url)
- ⇄code => integer 404
Продукт не найден.. Предлагаем Вам вернуться на главную!