Ejemplo n.º 1
0
 /**
  * Download the Extension Repository
  *
  * This forces the system to retrieve the new set of extensions based on
  * license key
  *
  * @return boolean
  *
  * @access public
  */
 public function downloadRepository()
 {
     $response = true;
     if ($extensions = aam_Core_API::getBlogOption('aam_extensions')) {
         if (is_array($extensions)) {
             $extension = new aam_Core_Extension();
             $extension->download();
         }
     }
     return $response;
 }
Ejemplo n.º 2
0
 /**
  * Remove extension
  *
  * @return string
  *
  * @access public
  */
 public function remove()
 {
     $extension = new aam_Core_Extension();
     $license = aam_Core_Request::post('license');
     $ext = aam_Core_Request::post('extension');
     if ($extension && $extension->remove($ext, $license)) {
         $response = array('status' => 'success');
     } else {
         $response = array('status' => 'failure');
     }
     return json_encode($response);
 }
Ejemplo n.º 3
0
 /**
  * Load Installed extensions
  *
  * @return void
  *
  * @access protected
  */
 protected function loadExtensions()
 {
     $model = new aam_Core_Extension($this);
     $model->load();
 }