本文整理汇总了PHP中eZPersistentObject::updateObjectList方法的典型用法代码示例。如果您正苦于以下问题:PHP eZPersistentObject::updateObjectList方法的具体用法?PHP eZPersistentObject::updateObjectList怎么用?PHP eZPersistentObject::updateObjectList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZPersistentObject
的用法示例。
在下文中一共展示了eZPersistentObject::updateObjectList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update
static function update($contentclass_version, $group_id, $group_name)
{
if ($contentclass_version == null) {
$row = array('group_id' => $group_id);
} else {
$row = array('contentclass_version' => $contentclass_version, 'group_id' => $group_id);
}
eZPersistentObject::updateObjectList(array('definition' => eZContentClassClassGroup::definition(), 'update_fields' => array('group_name' => $group_name), 'conditions' => $row));
}
示例2: updateFields
static function updateFields($collaborationID, $userID = false, $fields)
{
if ($userID === false) {
$userID = eZUser::currentUserID();
}
eZPersistentObject::updateObjectList(array('definition' => eZCollaborationItemStatus::definition(), 'update_fields' => $fields, 'conditions' => array('collaboration_id' => $collaborationID, 'user_id' => $userID)));
$statusObject =& $GLOBALS['eZCollaborationItemStatusCache'][$collaborationID][$userID];
if (isset($statusObject)) {
foreach ($fields as $field => $value) {
$statusObject->setAttribute($field, $value);
}
}
}
示例3: setLastChecked
static function setLastChecked( $id, $dateTime = false )
{
if ( $dateTime === false )
{
$dateTime = time();
}
eZPersistentObject::updateObjectList( array( 'definition' => eZURL::definition(),
'update_fields' => array( 'last_checked' => $dateTime ),
'conditions' => array( 'id' => $id ) ) );
}
示例4: preStoreClassAttribute
/**
* @param object $classAttribute An eZContentClassAttribute object
* @param mixed $version
* @return boolean
* @see eZDataType
* @access public
* @author ymc-dabe
*/
function preStoreClassAttribute($classAttribute, $version)
{
if ($version == eZContentClass::VERSION_STATUS_DEFINED) {
//Modify entries in the ymcdynamicinisetting-(meta-)table
eZPersistentObject::updateObjectList(array('definition' => ymcDynamicIniSetting::definition(), 'update_fields' => array('ini_type' => $classAttribute->attribute(self::CLASS_TYPE_FIELD), 'ini_file' => $classAttribute->attribute(self::CLASS_FILE_FIELD), 'ini_section' => $classAttribute->attribute(self::CLASS_SECTION_FIELD), 'ini_parameter' => $classAttribute->attribute(self::CLASS_PARAMETER_FIELD)), 'conditions' => array('contentclassattribute_id' => $classAttribute->attribute('id'))));
}
return true;
}
示例5: update
static function update($cond, $update_fields)
{
return eZPersistentObject::updateObjectList(array("definition" => self::definition(), "update_fields" => $update_fields, "conditions" => $cond));
}