本文整理匯總了PHP中PhabricatorCustomField::getFieldName方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorCustomField::getFieldName方法的具體用法?PHP PhabricatorCustomField::getFieldName怎麽用?PHP PhabricatorCustomField::getFieldName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PhabricatorCustomField
的用法示例。
在下文中一共展示了PhabricatorCustomField::getFieldName方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct(PhabricatorCustomField $field)
{
$key = $field->getFieldKey();
$name = $field->getFieldName();
$class = get_class($field);
parent::__construct("Custom field '{$name}' (with key '{$key}', of class '{$class}') is " . "attempting to access data which is not available in this context.");
}
示例2: __construct
public function __construct(PhabricatorCustomField $field)
{
$key = $field->getFieldKey();
$name = $field->getFieldName();
$class = get_class($field);
parent::__construct("Custom field '{$name}' (with key '{$key}', of class '{$class}') can " . "not have a proxy set with setProxy(), because it returned false from " . "canSetProxy().");
}
示例3: __construct
public function __construct(PhabricatorCustomField $field, $field_key_is_incomplete = false)
{
if ($field_key_is_incomplete) {
$key = pht('<incomplete key>');
$name = pht('<incomplete name>');
} else {
$key = $field->getFieldKey();
$name = $field->getFieldName();
}
parent::__construct(pht("Custom field '%s' (with key '%s', of class '%s') is incompletely " . "implemented: it claims to support a feature, but does not " . "implement all of the required methods for that feature.", $name, $key, get_class($field)));
}
開發者ID:pugong,項目名稱:phabricator,代碼行數:11,代碼來源:PhabricatorCustomFieldImplementationIncompleteException.php
示例4: getFieldName
public function getFieldName()
{
return coalesce($this->fieldName, parent::getFieldName());
}
示例5: __construct
public function __construct(PhabricatorCustomField $field)
{
parent::__construct(pht("Custom field '%s' (with key '%s', of class '%s') is attempting " . "to access data which is not available in this context.", $field->getFieldName(), $field->getFieldKey(), get_class($field)));
}
示例6: __construct
public function __construct(PhabricatorCustomField $field)
{
parent::__construct(pht("Custom field '%s' (with key '%s', of class '%s') can not have a " . "proxy set with %s, because it returned %s from %s.", $field->getFieldName(), $field->getFieldKey(), get_class($field), 'setProxy()', 'false', 'canSetProxy()'));
}