Пример #1
0
 public static function getTree()
 {
     $criteria = new CDbCriteria();
     $criteria->alias = 'Classes';
     $criteria->order = 'class_name';
     $objRet = Classes::model()->findAll($criteria);
     return Classes::getDataFormatted(Classes::parseTree($objRet, 0));
 }