Example #1
0
 /**
  * Convert the object attributes to a hash.
  *
  * @param string $attrs The attributes to return.
  *
  * @return array|PEAR_Error The hash representing this object.
  */
 public function toHash($attrs = null)
 {
     if (!isset($attrs)) {
         $attrs = array(self::ATTRIBUTE_LNFN);
     }
     return parent::toHash($attrs);
 }
Example #2
0
 /**
  * Convert the object attributes to a hash.
  *
  * @param string $attrs The attributes to return.
  *
  * @return array|PEAR_Error The hash representing this object.
  */
 public function toHash($attrs = null)
 {
     if (!isset($attrs)) {
         $attrs = array(self::ATTRIBUTE_SID, self::ATTRIBUTE_FN, self::ATTRIBUTE_MAIL, self::ATTRIBUTE_USERTYPE);
     }
     return parent::toHash($attrs);
 }