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."); }
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()."); }
public function setCustomField(PhabricatorCustomField $field) { $this->customField = $field; $this->setKey('custom:' . $field->getFieldIndex()); $aliases = array(); $aliases[] = $field->getFieldKey(); $this->setAliases($aliases); return $this; }
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))); }
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))); }
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()')); }