當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhabricatorCustomField::getFieldName方法代碼示例

本文整理匯總了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.");
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:7,代碼來源:PhabricatorCustomFieldDataNotAvailableException.php

示例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().");
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:7,代碼來源:PhabricatorCustomFieldNotProxyException.php

示例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());
 }
開發者ID:patelhardik,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorStandardCustomField.php

示例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)));
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorCustomFieldDataNotAvailableException.php

示例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()'));
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:4,代碼來源:PhabricatorCustomFieldNotProxyException.php


注:本文中的PhabricatorCustomField::getFieldName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。