Ansel_Faces_Base::ownerFaces PHP Метод

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

Get faces owned by user
public ownerFaces ( string $owner, integer $from, integer $count ) : array
$owner string User
$from integer Offset
$count integer Limit
Результат array An array of face hashes.
    public function ownerFaces($owner, $from = 0, $count = 0)
    {
        $info = array('filter' => 's.share_owner = ' . $GLOBALS['ansel_db']->quoteString($owner), 'order' => 'f.face_id DESC');
        if (!$GLOBALS['registry']->getAuth() || $owner != $GLOBALS['registry']->getAuth()) {
            $info['filter'] .= ' AND s.gallery_passwd IS NULL';
        }
        return $this->_fetchFaces($info, $from, $count);
    }