本文整理汇总了PHP中createRecords函数的典型用法代码示例。如果您正苦于以下问题:PHP createRecords函数的具体用法?PHP createRecords怎么用?PHP createRecords使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createRecords函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createRecords
function createRecords($obj)
{
$createRecords = createRecords($obj);
return $createRecords;
}
示例2: recordObject
function recordObject($irn)
{
$mySession = IMuConnect();
$terms = new IMuTerms();
$cat = new IMuModule('ecatalogue', $mySession);
$columns = array('irn', 'Creator=CreCreatorRef_tab.(Name=NamFullName)', 'Role=CreRole_tab', 'AccNo=TitAccessionNo', 'Medium=PhyMediumComments', 'Title=TitMainTitle', 'Year=CreDateCreated', 'Location=LocCurrentLocationRef.(LocLocationName,LocBarcode)', 'Children=<ecatalogue:AssParentObjectRef>.(irn, AccNo=TitAccessionNo, Title=TitMainTitle, Location=LocCurrentLocationRef.(LocLocationName, LocBarcode), TitBarcode)', 'MesType=MesMeasurementType_tab', 'H=MesTotalInchFrac_tab', 'W=MesTotWidthInchFrac_tab', 'D=MesTotDepthInchFrac_tab', 'Barcode=TitBarcode', 'image.resource{height:300,source:master}', 'NotesA=ConHandlingInstructions', 'NotesB=InsInstallationNotes');
$terms->add('irn', trim($irn));
$start = 0;
$number = 100;
try {
$hits = $cat->findTerms($terms);
$result = $cat->fetch('start', $start, $number, $columns);
$result = formatResults($result);
createRecords($result);
return $result;
} catch (Exception $e) {
throwError($e);
}
return null;
}