/** * Save Access settings for Post or Term * * @return string * * @access protected */ protected function saveAccess() { $model = new aam_View_Post(); return $model->saveAccess(); }
/** * Save Access settings for Post or Term * * @return string * * @access public */ public function saveAccess() { if (aam_View_Collection::hasFeature(self::FEATURE_POST_ACCESS)) { $post = new aam_View_Post(); $response = $post->saveAccess(); } else { $response = self::DEFAULT_AJAX_RESPONSE; } return $response; }