public $url_blog; // VARCHAR(256) NULL ;
public $url_twitter; // VARCHAR(256) NULL ;
public $url_linkedin; // VARCHAR(256) NULL ;
+ public $linkedin_id; // VARCHAR(256) NULL ;
public $phone_mobile; // varchar(32) NOT NULL DEFAULT '';
public $phone_direct; // varchar(32) NOT NULL DEFAULT '';
}
return '"' . addslashes($this->name) . '" <' . $this->email . '>';
}
+
function toEventString()
{
return empty($this->name) ? $this->email : $this->name;
}
+
function verifyAuth()
{
$ff= HTML_FlexyFramework::get();
}
}
-
+ //var_dump($ff->Pman['local_autoauth']); var_dump($_SERVER); exit;
$u = DB_DataObject::factory('Person');
$ff = HTML_FlexyFramework::get();
if (!empty($ff->Pman['local_autoauth']) &&
function applyFilters($q, $au, $roo)
{
//DB_DataObject::DebugLevel(1);
+
+ if (!empty($q['query']['is_owner'])) {
+ $this->whereAdd(" join_company_id_id.comptype = 'OWNER'");
+ }
+
if (!empty($q['query']['person_not_internal'])) {
$this->whereAdd(" join_company_id_id.isOwner = 0 ");
}
$p->onInsert(array(), $roo);
}
}
+
+ function getEmailName()
+ {
+ $name = array();
+
+ if(!empty($this->honor)){
+ array_push($name, $this->honor);
+ }
+
+ if(!empty($this->name)){
+ array_push($name, $this->name);
+
+ return implode(' ', $name);
+ }
+
+ if(!empty($this->firstname) || !empty($this->lastname)){
+ array_push($name, $this->firstname);
+ array_push($name, $this->lastname);
+
+ $name = array_filter($name);
+
+ return $name;
+ }
+
+ return $this->email;
+ }
+
}