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