当前位置: 首页>>代码示例>>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;未经允许,请勿转载。