当前位置: 首页>>代码示例>>PHP>>正文


PHP PhabricatorCustomField::getFieldKey方法代码示例

本文整理汇总了PHP中PhabricatorCustomField::getFieldKey方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorCustomField::getFieldKey方法的具体用法?PHP PhabricatorCustomField::getFieldKey怎么用?PHP PhabricatorCustomField::getFieldKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhabricatorCustomField的用法示例。


在下文中一共展示了PhabricatorCustomField::getFieldKey方法的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: setCustomField

 public function setCustomField(PhabricatorCustomField $field)
 {
     $this->customField = $field;
     $this->setKey('custom:' . $field->getFieldIndex());
     $aliases = array();
     $aliases[] = $field->getFieldKey();
     $this->setAliases($aliases);
     return $this;
 }
开发者ID:pugong,项目名称:phabricator,代码行数:9,代码来源:PhabricatorSearchCustomFieldProxyField.php

示例4: __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

示例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::getFieldKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。