本文整理汇总了PHP中Record::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Record::initialize方法的具体用法?PHP Record::initialize怎么用?PHP Record::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Record
的用法示例。
在下文中一共展示了Record::initialize方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function get_properties_change_history_records_xml()
{
$eids = array();
$xml_string = "";
$sql = "select eid from view_int_prop_to_e_p_to_e\nwhere type_id in (select type_id from type where type_name like '%_history') and prop_id = 40 and int_val = " . $this->eid;
$result = mysql_query($sql) or die("Error in RecordHistory...3lkd0skdjskfklk" . mysql_error());
while ($row = mysql_fetch_assoc($result)) {
$eids[] = $row['eid'];
}
$doc = new DOMDocument('1.0', 'UTF-8');
$doc->formatOutput = true;
$recs = $doc->createElement('records');
$recs = $doc->appendChild($recs);
foreach ($eids as $eid) {
$type_id = RecordsSys_EntityManagementSystems::get_type_id($eid);
$rec = new Record($eid, $type_id);
$rec->initialize();
$xml_string = $rec->xml_string;
$doc2 = new DOMDocument('1.0', 'UTF-8');
$doc2->loadXML($xml_string);
$node = $doc->importNode($doc2->firstChild, true);
$recs->appendChild($node);
}
// $rec->glu->prop_ids_num_extra[6] = 1;
// $rec->glu->set_prop_ids_num_extra_by_group_id(1);
//$rec->glu->set_prop_ids_num_extra_by_group_id(1);
// $xslt_file = $_SERVER['DOCUMENT_ROOT']."/XSLTemplates/testrecs.xsl";
$xml_string = $doc->saveXML();
return $xml_string;
}
示例2: Record
function get_record_xml($eid)
{
$type_id = RecordsSys_EntityManagementSystems::get_type_id($eid);
$rec = new Record($eid, $type_id);
$rec->initialize();
$xml_string = $rec->xml_string;
return $xml_string;
}
示例3: Record
function add_standard_additions()
{
$logged_in_user = AppEntities_Facade::get_user_instance();
$logged_in_user_id = $logged_in_user->user_id;
$rec = new Record($logged_in_user_id,3);
$rec->initialize();
$xml_string = $rec->xml_string;
$this->append_child_from_xml($xml_string, "logged_in_user_record"); //echo $xml_string;
}
示例4: Record
function get_record_xml_filtered($eid, $filter_properties)
{
$type_id = RecordsSys_EntityManagementSystems::get_type_id($eid);
$rec = new Record($eid, $type_id);
$rec->filter_properties = $filter_properties;
$rec->initialize();
$xml_string = $rec->xml_string;
return $xml_string;
}