本文整理汇总了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();
}