19 lines
No EOL
374 B
PHP
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))) . '}';
|
|
}
|
|
} |