本文整理汇总了PHP中Resource::getNotes方法的典型用法代码示例。如果您正苦于以下问题:PHP Resource::getNotes方法的具体用法?PHP Resource::getNotes怎么用?PHP Resource::getNotes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resource
的用法示例。
在下文中一共展示了Resource::getNotes方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</td>
</tr>
<?php
}
?>
</table>
<br />
<?php
//get notes for this tab
$sanitizedInstance = array();
$noteArray = array();
foreach ($resource->getNotes('Product') as $instance) {
foreach (array_keys($instance->attributeNames) as $attributeName) {
$sanitizedInstance[$attributeName] = $instance->{$attributeName};
}
$sanitizedInstance[$instance->primaryKeyName] = $instance->primaryKey;
$updateUser = new User(new NamedArguments(array('primaryKey' => $instance->updateLoginID)));
//in case this user doesn't have a first / last name set up
if ($updateUser->firstName != '' || $updateUser->lastName != '') {
$sanitizedInstance['updateUser'] = $updateUser->firstName . " " . $updateUser->lastName;
} else {
$sanitizedInstance['updateUser'] = $instance->updateLoginID;
}
$noteType = new NoteType(new NamedArguments(array('primaryKey' => $instance->noteTypeID)));
if (!$noteType->shortName) {
$sanitizedInstance['noteTypeName'] = 'General Note';
} else {
示例2: array
' class='thickbox'>edit cataloging details</a><br />
<?php
}
?>
<br />
<br />
<?php
//get notes for this tab
$sanitizedInstance = array();
$noteArray = array();
foreach ($resource->getNotes('Cataloging') as $instance) {
foreach (array_keys($instance->attributeNames) as $attributeName) {
$sanitizedInstance[$attributeName] = $instance->{$attributeName};
}
$sanitizedInstance[$instance->primaryKeyName] = $instance->primaryKey;
$updateUser = new User(new NamedArguments(array('primaryKey' => $instance->updateLoginID)));
//in case this user doesn't have a first / last name set up
if ($updateUser->firstName != '' || $updateUser->lastName != '') {
$sanitizedInstance['updateUser'] = $updateUser->firstName . " " . $updateUser->lastName;
} else {
$sanitizedInstance['updateUser'] = $instance->updateLoginID;
}
$noteType = new NoteType(new NamedArguments(array('primaryKey' => $instance->noteTypeID)));
if (!$noteType->shortName) {
$sanitizedInstance['noteTypeName'] = 'General Note';
} else {
示例3: array
echo $resourceID;
?>
' class='thickbox' id='editAccess'>edit access information</a>
<?php
}
?>
<br /><br /><br />
<?php
//get notes for this tab
$sanitizedInstance = array();
$noteArray = array();
foreach ($resource->getNotes('Access') as $instance) {
foreach (array_keys($instance->attributeNames) as $attributeName) {
$sanitizedInstance[$attributeName] = $instance->{$attributeName};
}
$sanitizedInstance[$instance->primaryKeyName] = $instance->primaryKey;
$updateUser = new User(new NamedArguments(array('primaryKey' => $instance->updateLoginID)));
//in case this user doesn't have a first / last name set up
if ($updateUser->firstName != '' || $updateUser->lastName != '') {
$sanitizedInstance['updateUser'] = $updateUser->firstName . " " . $updateUser->lastName;
} else {
$sanitizedInstance['updateUser'] = $instance->updateLoginID;
}
$noteType = new NoteType(new NamedArguments(array('primaryKey' => $instance->noteTypeID)));
if (!$noteType->shortName) {
$sanitizedInstance['noteTypeName'] = 'General Note';
} else {
示例4: array
?>
&modal=true' class='thickbox'><?php
echo _("add new subject");
?>
</a>
<?php
}
?>
<br />
<br />
<?php
//get notes for this tab
$sanitizedInstance = array();
$noteArray = array();
foreach ($resource->getNotes('Product') as $instance) {
foreach (array_keys($instance->attributeNames) as $attributeName) {
$sanitizedInstance[$attributeName] = $instance->{$attributeName};
}
$sanitizedInstance[$instance->primaryKeyName] = $instance->primaryKey;
$updateUser = new User(new NamedArguments(array('primaryKey' => $instance->updateLoginID)));
//in case this user doesn't have a first / last name set up
if ($updateUser->firstName != '' || $updateUser->lastName != '') {
$sanitizedInstance['updateUser'] = $updateUser->firstName . " " . $updateUser->lastName;
} else {
$sanitizedInstance['updateUser'] = $instance->updateLoginID;
}
$noteType = new NoteType(new NamedArguments(array('primaryKey' => $instance->noteTypeID)));
if (!$noteType->shortName) {
$sanitizedInstance['noteTypeName'] = 'General Note';
} else {
示例5: array
</a>
<?php
}
?>
<?php
}
?>
<br /><br /><br /><br />
<?php
//get notes for this tab
$sanitizedInstance = array();
$noteArray = array();
foreach ($resource->getNotes('Acquisitions') as $instance) {
foreach (array_keys($instance->attributeNames) as $attributeName) {
$sanitizedInstance[$attributeName] = $instance->{$attributeName};
}
$sanitizedInstance[$instance->primaryKeyName] = $instance->primaryKey;
$updateUser = new User(new NamedArguments(array('primaryKey' => $instance->updateLoginID)));
//in case this user doesn't have a first / last name set up
if ($updateUser->firstName != '' || $updateUser->lastName != '') {
$sanitizedInstance['updateUser'] = $updateUser->firstName . " " . $updateUser->lastName;
} else {
$sanitizedInstance['updateUser'] = $instance->updateLoginID;
}
$noteType = new NoteType(new NamedArguments(array('primaryKey' => $instance->noteTypeID)));
if (!$noteType->shortName) {
$sanitizedInstance['noteTypeName'] = 'General Note';
} else {