protected function checkOptionAttribute($attribute, $availableOptions, $name)
    {
        if (!in_array($attribute, $availableOptions)) {
            throw new CException(Yii::t(
                'zii',
                'Unsupported "{attribute}" setting.',
                array('{attribute}' => $name)
            ));
        }
    }
protected function checkOptionAttribute($attribute, $availableOptions, $name)
    {
        if (!in_array($attribute, $availableOptions)) {
            throw new CException(Yii::t(
                'zii',
                'Unsupported "{attribute}" setting.',
                array('{attribute}' => $name)
            ));
        }
    }
protected function checkOptionAttribute ( $ attribute , $ availableOptions , $ name ) { if ( ! in_array ( $ attribute , $ availableOptions ) ) { throw new CException ( Yii :: t ( 'zii' , 'Unsupported "{attribute}" setting.' , array ( '{attribute}' => $ name ) ) ) ; } }
Checks whether the option set is supported by the plugin

@param mixed $attribute attribute
@param array $availableOptions the possible values
@param string $name the name of the attribute

@throws CException
Checks whether the option set is supported by the plugin