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

getClass() 공개 메소드

Entities can be registered to always be loaded as a certain class with add_subtype() or update_subtype(). This function returns the class name if found and null if not.
또한 보기: get_subtype_from_id()
또한 보기: get_subtype_class_from_id()
public getClass ( string $type, string $subtype ) : string | null
$type string The type
$subtype string The subtype
리턴 string | null a class name or null
    public function getClass($type, $subtype)
    {
        $obj = $this->retrieveFromCache($type, $subtype);
        return $obj ? $obj->class : null;
    }