本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例6: getBuiltinOrders
public function getBuiltinOrders()
{
return array('datePublished' => array('vector' => array('datePublished', 'id'), 'name' => pht('Publish Date'))) + parent::getBuiltinOrders();
}
示例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;
}
示例8: getBuiltinOrders
public function getBuiltinOrders()
{
return array(self::ORDER_HIERARCHY => array('vector' => array('depth', 'title', 'updated'), 'name' => pht('Hierarchy'))) + parent::getBuiltinOrders();
}