Elgg\Database\AccessCollections::getEntityCollections PHP Метод

getEntityCollections() публичный Метод

Returns an array of database row objects of the access collections owned by $owner_guid.
public getEntityCollections ( integer $owner_guid ) : array | false
$owner_guid integer The entity guid
Результат array | false
    function getEntityCollections($owner_guid)
    {
        $owner_guid = (int) $owner_guid;
        $db = $this->db;
        $prefix = $db->prefix;
        $query = "SELECT * FROM {$prefix}access_collections\n\t\t\t\tWHERE owner_guid = {$owner_guid}\n\t\t\t\tORDER BY name ASC";
        $collections = $db->getData($query);
        return $collections;
    }