public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('site_id, name, long_name, directions, theatre_id, code, restriction, display_order', 'safe'), array('site_id, name', 'required'), array('restriction', 'numerical', 'integerOnly' => true), array('site_id', 'length', 'max' => 10), array('name', 'length', 'max' => 255), array('id, site_id, name, long_name, restriction', 'safe', 'on' => 'search'));
}