/** Gets TRelationType object by ID * @return TRelationType or NULL in case of error */ public static function getByID($_id) { $relation_arr = TRelationType::getRelationType("id", $_id); return $relation_arr[0]; }