WhOperation::init PHP Method

init() public method

Widget initialization
public init ( )
    public function init()
    {
        if (null == $this->column) {
            throw new CException(Yii::t('zii', '"{attribute}" attribute must be defined', array('{attribute}' => 'column')));
        }
        $this->attachBehavior('ywplugin', array('class' => 'yiiwheels.behaviors.WhPlugin'));
    }

Usage Example

Example #1
0
 /**
  * Widget's initialization method
  * @throws CException
  */
 public function init()
 {
     parent::init();
     if (!in_array($this->column->type, $this->supportedTypes)) {
         throw new CException(Yii::t('zii', 'Unsupported column type. Supported column types are: "{types}"', array('{types}' => implode(', ', $this->supportedTypes))));
     }
 }
All Usage Examples Of WhOperation::init