public function rules() { return array(array('element_id, item_id', 'required'), array('id, element_id, item_id', 'safe', 'on' => 'search')); }