Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/models/User.php
2010-08-29 12:42:25 +02:00

19 lines
No EOL
374 B
PHP

<?php
/**
* User
*
*/
class User extends Zend_Db_Table_Row_Abstract
{
/**
* Defines field not to show on __toString()
*
* @var array
*/
protected $_hiddenFields = array('password', 'salt');
public function __toString()
{
return '{' . join(',',array_diff_key($this->toArray(), array_flip($this->_hiddenFields))) . '}';
}
}