Exemplo n.º 1
0
 /**
  * Remove license
  *
  * @return string
  *
  * @access public
  */
 public function removeLicense()
 {
     if (current_user_can(aam_Core_ConfigPress::getParam('aam.menu.extensions.capability', 'administrator'))) {
         $model = new aam_View_Extension();
         $response = $model->remove();
     } else {
         $response = self::DEFAULT_AJAX_RESPONSE;
     }
     return $response;
 }
Exemplo n.º 2
0
 /**
  * Remove extension
  *
  * @return string
  *
  * @access protected
  */
 protected function removeExtension()
 {
     $model = new aam_View_Extension();
     return $model->remove();
 }
Exemplo n.º 3
0
 /**
  * Extension content page
  *
  * @return void
  *
  * @access public
  */
 public function extensionContent()
 {
     $manager = new aam_View_Extension();
     echo $manager->run();
 }