public function getAdminCanditates()
    {
        $viewer = get_viewer();
        $query = $this->getService('repos:people.person')->getQuery();

        //super admin can make anyone admin
        if (!$viewer->admin()) {
            $ids = $this->_mixer->followerIds->toArray();
            $ids = array_merge($ids, $viewer->followerIds->toArray());
            $query->id($ids)->id($viewer->id, '<>')->id($this->administratorIds->toArray(), '<>');
        }

        return $query->toEntitySet();
    }
public function getAdminCanditates()
    {
        $viewer = get_viewer();
        $query = $this->getService('repos:people.person')->getQuery();

        //super admin can make anyone admin
        if (!$viewer->admin()) {
            $ids = $this->_mixer->followerIds->toArray();
            $ids = array_merge($ids, $viewer->followerIds->toArray());
            $query->id($ids)->id($viewer->id, '<>')->id($this->administratorIds->toArray(), '<>');
        }

        return $query->toEntitySet();
    }
public function getAdminCanditates ( ) { $ viewer = get_viewer ( ) ; $ query = $ this -> getService ( 'repos:people.person' ) -> getQuery ( ) ; //super admin can make anyone admin if ( ! $ viewer -> admin ( ) ) { $ ids = $ this -> _mixer -> followerIds -> toArray ( ) ; $ ids = array_merge ( $ ids , $ viewer -> followerIds -> toArray ( ) ) ; $ query -> id ( $ ids ) -> id ( $ viewer -> id , '<>' ) -> id ( $ this -> administratorIds -> toArray ( ) , '<>' ) ; } return $ query -> toEntitySet ( ) ; }
Return an entity set of suitable admin canditates.

@return AnDomainEntitsetDefault
Return an entity set of suitable admin canditates .