Gc\User\Collection::getUsers PHP Method

getUsers() public method

Get users
public getUsers ( ) : array
return array Gc\User\Model
    public function getUsers()
    {
        return $this->getData('users');
    }

Usage Example

Example #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     $collection = new Collection();
     foreach ($collection->getUsers() as $user) {
         $user->delete();
     }
     unset($collection);
     $this->object = Model::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '*****@*****.**', 'login' => 'test-user-model', 'user_acl_role_id' => 1, 'active' => true));
     $this->object->setPassword('test-user-model-password');
     $this->object->save();
 }
All Usage Examples Of Gc\User\Collection::getUsers