Пример #1
0
 function getClasses()
 {
     $classes = $this->obj->CMSTreeClasses();
     if ($this->isCurrent) {
         $classes .= " current";
     }
     $flags = $this->obj->hasMethod('getStatusFlags') ? $this->obj->getStatusFlags() : false;
     if ($flags) {
         $classes .= ' ' . implode(' ', array_keys($flags));
     }
     return $classes;
 }
Пример #2
0
 public function getClasses()
 {
     $classes = $this->obj->CMSTreeClasses();
     if ($this->isCurrent) {
         $classes .= " current";
     }
     $flags = $this->obj->hasMethod('getStatusFlags') ? $this->obj->getStatusFlags() : false;
     if ($flags) {
         $statuses = array_keys($flags);
         foreach ($statuses as $s) {
             $classes .= ' status-' . $s;
         }
     }
     return $classes;
 }