當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Resource::getNotes方法代碼示例

本文整理匯總了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 {
開發者ID:billdueber,項目名稱:resources,代碼行數:31,代碼來源:summary.php

示例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 {
開發者ID:jsteverman,項目名稱:resources,代碼行數:31,代碼來源:cataloging.php

示例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 {
開發者ID:jsteverman,項目名稱:resources,代碼行數:31,代碼來源:getAccessDetails.php

示例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 {
開發者ID:billdueber,項目名稱:resources,代碼行數:31,代碼來源:getProductDetails.php

示例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 {
開發者ID:billdueber,項目名稱:resources,代碼行數:31,代碼來源:getAcquisitionsDetails.php


注:本文中的Resource::getNotes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。