本文整理汇总了PHP中eZInformationCollection::definition方法的典型用法代码示例。如果您正苦于以下问题:PHP eZInformationCollection::definition方法的具体用法?PHP eZInformationCollection::definition怎么用?PHP eZInformationCollection::definition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZInformationCollection
的用法示例。
在下文中一共展示了eZInformationCollection::definition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetchCollectionsCount
static function fetchCollectionsCount( $contentObjectID = false, $creatorID = false, $userIdentifier = false )
{
$conditions = array();
if ( is_numeric( $contentObjectID ) )
$conditions = array( 'contentobject_id' => $contentObjectID );
if ( is_numeric( $creatorID ) )
$conditions['creator_id'] = $creatorID ;
if ( $userIdentifier )
$conditions['user_identifier'] = $userIdentifier;
$resultSet = eZPersistentObject::fetchObjectList( eZInformationCollection::definition(),
array(),
$conditions,
false,
null,
false,
false,
array( array( 'operation' => 'count( id )',
'name' => 'count' ) ) );
return $resultSet[0]['count'];
}
示例2: set_time_limit
set_time_limit($exportExecutionTimeLimit);
$object = false;
$exportCreationDate = false;
$exportModificationDate = false;
if (is_numeric($objectID)) {
$object = eZContentObject::fetch($objectID);
}
if (!$object) {
return $module->handleError(EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel');
}
$conditions = array('contentobject_id' => $objectID);
$dateConditions = bccieExportUtils::getDateConditions($http);
if ($dateConditions['conditions'] != null) {
$conditions['created'] = $dateConditions['conditions'];
}
$collections = eZPersistentObject::fetchObjectList(eZInformationCollection::definition(), null, $conditions, false, false);
// TODO: change error handler
if (!$collections) {
return $module->handleError(EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel');
}
$counter = 0;
$attributesToExport = array();
while (true) {
$currentattribute = $http->postVariable("field_{$counter}");
if (!$currentattribute) {
break;
}
$attributesToExport[] = $currentattribute;
$counter++;
}
if ($http->hasPostVariable("creation_date")) {