}
- function updated_dt($format)
- {
- return;
- }
-
function toEventString() {
return $this->name;
}
return $ret;
}
+ function initCompanies($roo, $name, $type)
+ {
+ $companies = DB_DataObject::factory('companies');
+ $companies->setFrom(array(
+ 'name' => $name,
+ 'comptype' => $type,
+ 'background_color' => '',
+ 'created_dt' => $this->sqlValue('NOW()'),
+ 'updated_dt' => $this->sqlValue('NOW()')
+ ));
+
+ $companies->insert();
+ $companies->onInsert(array(), $roo);
+ }
}