/**
  * @param int
  * @return string|NULL
  */
 public function filterOut($id)
 {
     $row = $this->addons->find($id);
     if (!$row) {
         return NULL;
     }
     return $row->composerVendor . '/' . $row->composerName;
 }
Beispiel #2
0
 function install($addonid)
 {
     if ($addonid > 2) {
         $addon = Addons::find($addonid);
         Event::fire('backend.addons.install', array($addon));
         $addon->installed = 1;
         $addon->save();
         return Redirect::to('addons/manage')->withMessage($this->notifyView(Lang::get('messages.addon_installed')));
     } else {
         return Redirect::to('addons/manage')->withMessage($this->notifyView(Lang::get('messages.no_access'), 'error'));
     }
 }