本文整理汇总了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();
}
}