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