Exemplo n.º 1
0
 public function getCategoryDefaultDescription()
 {
     if ($name = RelationshipCategoryTable::getDefaultDescriptionById($this->category_id)) {
         return $name;
     }
     if ($category = $this->getCategory()) {
         return $category->default_description;
     }
     return null;
 }
Exemplo n.º 2
0
 static function getCategoryDefaultDescription($rel)
 {
     if ($name = RelationshipCategoryTable::getDefaultDescriptionById($rel['category_id'])) {
         return $name;
     }
     return null;
 }