Elgg\Database\SubtypeTable::getSubtype PHP 메소드

getSubtype() 공개 메소드

Gets the denormalized string for a given subtype ID.
또한 보기: get_subtype_id()
public getSubtype ( integer $subtype_id ) : string | false
$subtype_id integer Subtype ID from database
리턴 string | false Subtype name, false if subtype not found
    public function getSubtype($subtype_id)
    {
        if (!$subtype_id) {
            return '';
        }
        $cache = $this->getPopulatedCache();
        return isset($cache[$subtype_id]) ? $cache[$subtype_id]->subtype : false;
    }