本文整理匯總了PHP中PhabricatorLiskDAO::getTableName方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorLiskDAO::getTableName方法的具體用法?PHP PhabricatorLiskDAO::getTableName怎麽用?PHP PhabricatorLiskDAO::getTableName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PhabricatorLiskDAO
的用法示例。
在下文中一共展示了PhabricatorLiskDAO::getTableName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getCustomTransactionNewValue
protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
{
switch ($xaction->getTransactionType()) {
case PhabricatorProjectTransaction::TYPE_NAME:
case PhabricatorProjectTransaction::TYPE_STATUS:
case PhabricatorProjectTransaction::TYPE_IMAGE:
case PhabricatorProjectTransaction::TYPE_ICON:
case PhabricatorProjectTransaction::TYPE_COLOR:
case PhabricatorProjectTransaction::TYPE_LOCKED:
case PhabricatorProjectTransaction::TYPE_PARENT:
return $xaction->getNewValue();
case PhabricatorProjectTransaction::TYPE_SLUGS:
return $this->normalizeSlugs($xaction->getNewValue());
case PhabricatorProjectTransaction::TYPE_MILESTONE:
$current = queryfx_one($object->establishConnection('w'), 'SELECT MAX(milestoneNumber) n
FROM %T
WHERE parentProjectPHID = %s', $object->getTableName(), $object->getParentProject()->getPHID());
if (!$current) {
$number = 1;
} else {
$number = (int) $current['n'] + 1;
}
return $number;
}
return parent::getCustomTransactionNewValue($object, $xaction);
}
示例2: buildLiskObjectSchema
protected function buildLiskObjectSchema(PhabricatorLiskDAO $object)
{
$this->buildRawSchema($object->getApplicationName(), $object->getTableName(), $object->getSchemaColumns(), $object->getSchemaKeys());
}
示例3: loadStandardPageRows
protected function loadStandardPageRows(PhabricatorLiskDAO $table)
{
$conn = $table->establishConnection('r');
$rows = queryfx_all($conn, '%Q FROM %T %Q %Q %Q %Q %Q %Q %Q', $this->buildSelectClause($conn), $table->getTableName(), (string) $this->getPrimaryTableAlias(), $this->buildJoinClause($conn), $this->buildWhereClause($conn), $this->buildGroupClause($conn), $this->buildHavingClause($conn), $this->buildOrderClause($conn), $this->buildLimitClause($conn));
return $rows;
}