toArray() public method

public toArray ( ) : array
return array
Exemplo n.º 1
0
 /**
  * @param \Nette\Database\Table\ActiveRow
  * @return \Nette\Security\Identity
  */
 public function createIdentity(ActiveRow $user)
 {
     $data = $user->toArray();
     unset($data['password']);
     $role = strtolower($user->ref('users_groups', 'group_id')->g_title);
     return new Identity($user->id, $role, $data);
 }
Exemplo n.º 2
0
 /**
  * @return array
  */
 public function toArray()
 {
     return $this->activeRow->toArray();
 }
Exemplo n.º 3
0
 public function createIdentity(ActiveRow $user)
 {
     $data = $user->toArray();
     unset($user['password']);
     return new \Nette\Security\Identity($user->id, NULL, $data);
 }