array('model'=>'SSL','far_key'=>'id','foreign_key'=>'account_id'), ); public function id() { if (! $this->prefix) throw HTTP_Exception::factory(501,'Your prefix is missing, please contact an admin'); return strlen($this->prefix) > 1 ? $this->prefix : sprintf('%s%06d',$this->prefix,$this->id); } public function ssl_dn() { return sprintf('O=IBM,CN=%s',$this->id()); } } ?>