當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders方法代碼示例

本文整理匯總了PHP中PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders方法的具體用法?PHP PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders怎麽用?PHP PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PhabricatorCursorPagedPolicyAwareQuery的用法示例。


在下文中一共展示了PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getBuiltinOrders

 public function getBuiltinOrders()
 {
     return array('name' => array('vector' => array('name'), 'name' => pht('Name'))) + parent::getBuiltinOrders();
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorProjectQuery.php

示例2: getBuiltinOrders

 public function getBuiltinOrders()
 {
     return array('quality' => array('vector' => array('quality', 'id'), 'name' => pht('Rarity (Rarest First)')), 'shoddiness' => array('vector' => array('-quality', '-id'), 'name' => pht('Rarity (Most Common First)'))) + parent::getBuiltinOrders();
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorBadgesQuery.php

示例3: getBuiltinOrders

 public function getBuiltinOrders()
 {
     return array('committed' => array('vector' => array('committed', 'id'), 'name' => pht('Most Recent Commit')), 'name' => array('vector' => array('name', 'id'), 'name' => pht('Name')), 'callsign' => array('vector' => array('callsign'), 'name' => pht('Callsign')), 'size' => array('vector' => array('size', 'id'), 'name' => pht('Size'))) + parent::getBuiltinOrders();
 }
開發者ID:truSense,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorRepositoryQuery.php

示例4: getBuiltinOrders

 public function getBuiltinOrders()
 {
     $orders = parent::getBuiltinOrders() + array('updated' => array('vector' => array('updated', 'id'), 'name' => pht('Date Updated (Latest First)'), 'aliases' => array(self::ORDER_MODIFIED)), 'outdated' => array('vector' => array('-updated', '-id'), 'name' => pht('Date Updated (Oldest First)')));
     // Alias the "newest" builtin to the historical key for it.
     $orders['newest']['aliases'][] = self::ORDER_CREATED;
     return $orders;
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:7,代碼來源:DifferentialRevisionQuery.php

示例5: getBuiltinOrders

 public function getBuiltinOrders()
 {
     $orders = array('priority' => array('vector' => array('priority', 'subpriority', 'id'), 'name' => pht('Priority'), 'aliases' => array(self::ORDER_PRIORITY)), 'updated' => array('vector' => array('updated', 'id'), 'name' => pht('Date Updated (Latest First)'), 'aliases' => array(self::ORDER_MODIFIED)), 'outdated' => array('vector' => array('-updated', '-id'), 'name' => pht('Date Updated (Oldest First)')), 'title' => array('vector' => array('title', 'id'), 'name' => pht('Title'), 'aliases' => array(self::ORDER_TITLE))) + parent::getBuiltinOrders();
     // Alias the "newest" builtin to the historical key for it.
     $orders['newest']['aliases'][] = self::ORDER_CREATED;
     $orders = array_select_keys($orders, array('priority', 'updated', 'outdated', 'newest', 'oldest', 'title')) + $orders;
     return $orders;
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:8,代碼來源:ManiphestTaskQuery.php

示例6: getBuiltinOrders

 public function getBuiltinOrders()
 {
     return array('datePublished' => array('vector' => array('datePublished', 'id'), 'name' => pht('Publish Date'))) + parent::getBuiltinOrders();
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:4,代碼來源:PhamePostQuery.php

示例7: getBuiltinOrders

 public function getBuiltinOrders()
 {
     $parent = parent::getBuiltinOrders();
     // Rename the default ID-based orders.
     $parent['importnew'] = array('name' => pht('Import Date (Newest First)')) + $parent['newest'];
     $parent['importold'] = array('name' => pht('Import Date (Oldest First)')) + $parent['oldest'];
     return array('newest' => array('vector' => array('epoch', 'id'), 'name' => pht('Commit Date (Newest First)')), 'oldest' => array('vector' => array('-epoch', '-id'), 'name' => pht('Commit Date (Oldest First)'))) + $parent;
 }
開發者ID:nilsdornblut,項目名稱:phabricator,代碼行數:8,代碼來源:DiffusionCommitQuery.php

示例8: getBuiltinOrders

 public function getBuiltinOrders()
 {
     return array(self::ORDER_HIERARCHY => array('vector' => array('depth', 'title', 'updated'), 'name' => pht('Hierarchy'))) + parent::getBuiltinOrders();
 }
開發者ID:endlessm,項目名稱:phabricator,代碼行數:4,代碼來源:PhrictionDocumentQuery.php


注:本文中的PhabricatorCursorPagedPolicyAwareQuery::getBuiltinOrders方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。