public function administrators($field = null)
    {
        $model = TableRegistry::get('CakeAdmin.Administrators');

        $query = $model->find('all');

        if ($field) {
            $model->displayField($field);
            $query->find('list');
        }

        $result = $query->toArray();

        return $result;
    }
public function administrators($field = null)
    {
        $model = TableRegistry::get('CakeAdmin.Administrators');

        $query = $model->find('all');

        if ($field) {
            $model->displayField($field);
            $query->find('list');
        }

        $result = $query->toArray();

        return $result;
    }
public function administrators ( $ field = null ) { $ model = TableRegistry :: get ( 'CakeAdmin.Administrators' ) ; $ query = $ model -> find ( 'all' ) ; if ( $ field ) { $ model -> displayField ( $ field ) ; $ query -> find ( 'list' ) ; } $ result = $ query -> toArray ( ) ; return $ result ; }
Returns a list of administrators.

@param null $field Non-required field, if empty all data will be returned.
@return array|string
Returns a list of administrators .