/** * Get fields to retrieve. * * @param string $type either 'select','update' or 'insert' * @return array */ protected function getFieldsFor($type) { $fields = parent::getFieldsFor($type); if (strcmp($type, 'update') !== 0) { $fields[] = $this->getSaltField(); } return $fields; }
/** * Attach an auth observer. * * @param T_Auth_Observer $observer * @return T_Auth_Registry fluent interface */ function attach(T_Auth_Observer $observer) { $this->user_gw->attach($observer); return $this; }