Class Metadata
Metadata Helps to get metadata about models,controllers and actions in application*
For using you need:
- Place this file to directory with components of your application (your_app_dir/protected/components)
- Add it to 'components' in your application config (your_app_dir/protected/config/main.php)
'components'=>array( 'metadata'=>array('class'=>'Metadata'), ... ), 3. Use: $user_actions = Yii::app()->metadata->getActions('UserController'); var_dump($user_actions);
- CComponent
- CApplicationComponent implements IApplicationComponent
- Metadata
Author: Vitaliy Stepanenko <mail@vitaliy.in>
Version: 0.2
Link: http://www.yiiframework.com/extension/metadata/
Located at phundament/p3admin/components/Metadata.php
Methods summary
public
|
|
public
mixed
|
|
public
array
|
|
public
array
|
#
getControllers( mixed $module = null )
Scans controller directory & return array of MVC controllers |
public
array
|
|
public
|
Methods inherited from CApplicationComponent
getIsInitialized()
,
init()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Properties summary
Properties inherited from CApplicationComponent
$behaviors
Magic properties inherited from CApplicationComponent
$isInitialized