예제 #1
0
 function updateExternalAlias($values, $object)
 {
     $object = section::_updateCommon($values, $object);
     $object->active = 1;
     $object->public = isset($values['public']) ? 1 : 0;
     $object->alias_type = 1;
     $object->external_link = $values['external_link'];
     if (!pathos_core_URLisValid($object->external_link)) {
         $object->external_link = 'http://' . $object->external_link;
     }
     return $object;
 }
 function update($values, $object)
 {
     $object->firstname = $values['firstname'];
     $object->lastname = $values['lastname'];
     $object->address1 = $values['address1'];
     $object->address2 = $values['address2'];
     $object->city = $values['city'];
     $object->state = $values['state'];
     $object->zip = $values['zip'];
     $object->email = $values['email'];
     $object->webpage = $values['webpage'];
     if (!pathos_core_URLisValid($object->webpage)) {
         $object->webpage = 'http://' . $object->webpage;
     }
     $object->phone = $values['phone'];
     $object->cell = $values['cell'];
     $object->pager = $values['pager'];
     $object->fax = $values['fax'];
     $object->notes = $values['notes'];
     return $object;
 }