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; }
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; }