本文整理匯總了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 {