当前位置: 首页>>代码示例>>PHP>>正文


PHP eZContentObjectTreeNode::createNodesConditionSQLStringFromPath方法代码示例

本文整理汇总了PHP中eZContentObjectTreeNode::createNodesConditionSQLStringFromPath方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentObjectTreeNode::createNodesConditionSQLStringFromPath方法的具体用法?PHP eZContentObjectTreeNode::createNodesConditionSQLStringFromPath怎么用?PHP eZContentObjectTreeNode::createNodesConditionSQLStringFromPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eZContentObjectTreeNode的用法示例。


在下文中一共展示了eZContentObjectTreeNode::createNodesConditionSQLStringFromPath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fetchNodesByPathString

 static function fetchNodesByPathString($nodePath, $withLastNode = false, $asObjects = true, $limit = false)
 {
     $nodesListArray = array();
     $pathString = eZContentObjectTreeNode::createNodesConditionSQLStringFromPath($nodePath, $withLastNode, $limit);
     if ($pathString) {
         $useVersionName = true;
         $versionNameTables = eZContentObjectTreeNode::createVersionNameTablesSQLString($useVersionName);
         $versionNameTargets = eZContentObjectTreeNode::createVersionNameTargetsSQLString($useVersionName);
         $versionNameJoins = eZContentObjectTreeNode::createVersionNameJoinsSQLString($useVersionName);
         $query = "SELECT ezcontentobject.*,\n                             ezcontentobject_tree.*,\n                             ezcontentclass.serialized_name_list as class_serialized_name_list,\n                             ezcontentclass.identifier as class_identifier,\n                             ezcontentclass.is_container as is_container\n                             {$versionNameTargets}\n                      FROM ezcontentobject_tree,\n                           ezcontentobject,\n                           ezcontentclass\n                           {$versionNameTables}\n                      WHERE {$pathString}\n                            ezcontentobject_tree.contentobject_id=ezcontentobject.id  AND\n                            ezcontentclass.version=0 AND\n                            ezcontentclass.id = ezcontentobject.contentclass_id\n                            {$versionNameJoins}\n                      ORDER BY path_string";
         $db = eZDB::instance();
         $nodesListArray = $db->arrayQuery($query);
     }
     if ($asObjects) {
         return eZContentObjectTreeNode::makeObjectsArray($nodesListArray);
     }
     return $nodesListArray;
 }
开发者ID:radca,项目名称:ezpublish,代码行数:18,代码来源:ezcontentobjecttreenode.php

示例2: fetchNodesByPathString

 static function fetchNodesByPathString($nodePath, $withLastNode = false, $asObjects = true, $limit = false)
 {
     $nodesListArray = array();
     $pathString = eZContentObjectTreeNode::createNodesConditionSQLStringFromPath($nodePath, $withLastNode, $limit);
     if ($pathString) {
         $nodesListArray = eZDB::instance()->arrayQuery("SELECT " . "ezcontentobject.contentclass_id, ezcontentobject.current_version, ezcontentobject.id, ezcontentobject.initial_language_id, ezcontentobject.language_mask, " . "ezcontentobject.modified, ezcontentobject.owner_id, ezcontentobject.published, ezcontentobject.remote_id AS object_remote_id, ezcontentobject.section_id, " . "ezcontentobject.status, ezcontentobject_tree.contentobject_is_published, ezcontentobject_tree.contentobject_version, ezcontentobject_tree.depth, " . "ezcontentobject_tree.is_hidden, ezcontentobject_tree.is_invisible, ezcontentobject_tree.main_node_id, ezcontentobject_tree.modified_subnode, ezcontentobject_tree.node_id, " . "ezcontentobject_tree.parent_node_id, ezcontentobject_tree.path_identification_string, ezcontentobject_tree.path_string, ezcontentobject_tree.priority, ezcontentobject_tree.remote_id, " . "ezcontentobject_tree.sort_field, ezcontentobject_tree.sort_order, ezcontentclass.serialized_name_list as class_serialized_name_list, ezcontentclass.identifier as class_identifier, " . "ezcontentclass.is_container as is_container, ezcontentobject_name.name, ezcontentobject_name.real_translation " . "FROM ezcontentobject_tree " . "INNER JOIN ezcontentobject ON (ezcontentobject.id = ezcontentobject_tree.contentobject_id) " . "INNER JOIN ezcontentclass ON (ezcontentclass.id = ezcontentobject.contentclass_id) " . "INNER JOIN ezcontentobject_name ON ( " . "    ezcontentobject_name.contentobject_id = ezcontentobject_tree.contentobject_id AND " . "    ezcontentobject_name.content_version = ezcontentobject_tree.contentobject_version " . ") " . "WHERE {$pathString} ezcontentclass.version = 0 AND " . eZContentLanguage::sqlFilter('ezcontentobject_name', 'ezcontentobject') . " " . "ORDER BY path_string");
     }
     if ($asObjects) {
         return eZContentObjectTreeNode::makeObjectsArray($nodesListArray);
     }
     return $nodesListArray;
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:12,代码来源:ezcontentobjecttreenode.php

示例3: fetchNodesByPathString

 static function fetchNodesByPathString($nodePath, $withLastNode = false, $asObjects = true, $limit = false)
 {
     $nodesListArray = array();
     $pathString = eZContentObjectTreeNode::createNodesConditionSQLStringFromPath($nodePath, $withLastNode, $limit);
     if ($pathString) {
         $query = "SELECT ezcontentobject.*,\n                             ezcontentobject_tree.*,\n                             ezcontentclass.serialized_name_list as class_serialized_name_list,\n                             ezcontentclass.identifier as class_identifier,\n                             ezcontentclass.is_container as is_container,\n                             ezcontentobject_name.name as name,\n                             ezcontentobject_name.real_translation\n                      FROM ezcontentobject_tree\n                           INNER JOIN ezcontentobject ON (ezcontentobject.id = ezcontentobject_tree.contentobject_id)\n                           INNER JOIN ezcontentclass ON (ezcontentclass.id = ezcontentobject.contentclass_id)\n                           INNER JOIN ezcontentobject_name ON (\n                               ezcontentobject_name.contentobject_id = ezcontentobject_tree.contentobject_id AND\n                               ezcontentobject_name.content_version = ezcontentobject_tree.contentobject_version\n                           )\n                      WHERE {$pathString}\n                            ezcontentclass.version = 0 AND\n                            " . eZContentLanguage::sqlFilter('ezcontentobject_name', 'ezcontentobject') . "\n                      ORDER BY path_string";
         $db = eZDB::instance();
         $nodesListArray = $db->arrayQuery($query);
     }
     if ($asObjects) {
         return eZContentObjectTreeNode::makeObjectsArray($nodesListArray);
     }
     return $nodesListArray;
 }
开发者ID:legende91,项目名称:ez,代码行数:14,代码来源:ezcontentobjecttreenode.php


注:本文中的eZContentObjectTreeNode::createNodesConditionSQLStringFromPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。