Пример #1
0
 public function view($typeID = null)
 {
     $siteType = false;
     if ($typeID) {
         $siteType = $this->app->make('site/type')->getByID($typeID);
     }
     if (!$siteType) {
         $siteType = $this->app->make('site/type')->getDefault();
     } else {
         $this->set('siteTypeID', $siteType->getSiteTypeID());
     }
     $this->set('frequent', Type::getFrequentlyUsedList($siteType));
     $this->set('infrequent', Type::getInfrequentlyUsedList($siteType));
 }
Пример #2
0
 public function view()
 {
     $this->set('frequent', Type::getFrequentlyUsedList());
     $this->set('infrequent', Type::getInfrequentlyUsedList());
 }