本文整理匯總了PHP中ORDataObject::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP ORDataObject::__construct方法的具體用法?PHP ORDataObject::__construct怎麽用?PHP ORDataObject::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ORDataObject
的用法示例。
在下文中一共展示了ORDataObject::__construct方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: date
/**
* Constructor sets all Note attributes to their default value
* @param int $id optional existing id of a specific note, if omitted a "blank" note is created
*/
function __construct($id = "")
{
//call the parent constructor so we have a _db to work with
parent::__construct();
//shore up the most basic ORDataObject bits
$this->id = $id;
$this->_table = "notes";
$this->note = "";
$this->date = date("Y-m-d H:i:s");
if ($id != "") {
$this->populate();
}
}
示例2:
/**
* Constructor sets all Insurance attributes to their default value
*/
function __construct($id = "", $prefix = "")
{
parent::__construct();
$this->id = $id;
$this->_table = "x12_partners";
$this->processing_format_array = $this->_load_enum("processing_format", false);
$this->processing_format = $this->processing_format_array[0];
//most recent x12 version mandated by HIPAA and CMS
// $this->x12_version = "004010X098A1";
$this->x12_version = "005010X222A1";
$this->x12_isa05 = "ZZ";
$this->x12_isa07 = "ZZ";
$this->x12_isa14 = "0";
if ($id != "") {
$this->populate();
}
}
示例3: date
/**
* Constructor sets all Document attributes to their default value
* @param int $id optional existing id of a specific document, if omitted a "blank" document is created
*/
function __construct($id = "")
{
//call the parent constructor so we have a _db to work with
parent::__construct();
//shore up the most basic ORDataObject bits
$this->id = $id;
$this->_table = "documents";
//load the enum type from the db using the parent helper function, this uses psuedo-class variables so it is really cheap
$this->type_array = $this->_load_enum("type");
$this->type = $this->type_array[0];
$this->size = 0;
$this->date = date("Y-m-d H:i:s");
$this->url = "";
$this->mimetype = "";
$this->docdate = date("Y-m-d");
$this->hash = "";
$this->list_id = 0;
$this->encounter_id = 0;
$this->encounter_check = "";
if ($id != "") {
$this->populate();
}
}