本文整理汇总了PHP中eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder方法的具体用法?PHP eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder怎么用?PHP eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZContentObjectTreeNode
的用法示例。
在下文中一共展示了eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sortArray
function sortArray()
{
return eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder($this->attribute('sort_field'), $this->attribute('sort_order'));
}
示例2: createContentStructureNode
function createContentStructureNode(&$treeNode, $childrenCount)
{
$node = array('node' => array('node_id' => $treeNode['node_id'], 'path_identification_string' => $treeNode['path_identification_string'], 'children_count' => $childrenCount, 'sort_array' => eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder($treeNode['sort_field'], $treeNode['sort_order']), 'path_string' => $treeNode['path_string'], 'depth' => $treeNode['depth'], 'is_hidden' => $treeNode['is_hidden'], 'is_invisible' => $treeNode['is_invisible']), 'classes_js_array' => eZContentObjectTreeNode::availableClassListJsArray(array('path_string' => $treeNode['path_string'], 'is_container' => $treeNode['is_container'], 'node_id' => $treeNode['node_id'])), 'object' => array('id' => $treeNode['id'], 'name' => $treeNode['name'], 'class_identifier' => $treeNode['class_identifier'], 'class_name' => eZContentClass::nameFromSerializedString($treeNode['class_serialized_name_list']), 'published' => $treeNode['published'], 'is_container' => $treeNode['is_container'] == '1', 'language_js_array' => eZContentLanguage::jsArrayByMask($treeNode['language_mask'])));
return $node;
}