Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitAPIMethod.php
Context not available. | |||||
); | ); | ||||
$ord = idx($map, $this->getMethodStatus(), 0); | $ord = idx($map, $this->getMethodStatus(), 0); | ||||
list($head, $tail) = explode('.', $name, 2); | list($head, $tail) = @explode('.', $name, 2); | ||||
return "{$head}.{$ord}.{$tail}"; | return "{$head}.{$ord}.{$tail}"; | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
public function getApplicationName() { | public function getApplicationName() { | ||||
return head(explode('.', $this->getAPIMethodName(), 2)); | return head(@explode('.', $this->getAPIMethodName(), 2)); | ||||
} | } | ||||
public static function loadAllConduitMethods() { | public static function loadAllConduitMethods() { | ||||
Context not available. | |||||
public static function getParameterMetadataKey($key) { | public static function getParameterMetadataKey($key) { | ||||
if (strncmp($key, 'api.', 4) === 0) { | if (strncmp($key, 'api.', 4) === 0) { | ||||
// All keys passed beginning with "api." are always metadata keys. | // All keys passed beginning with "api." are always metadata keys. | ||||
return substr($key, 4); | return @substr($key, 4); | ||||
} else { | } else { | ||||
switch ($key) { | switch ($key) { | ||||
// These are real keys which always belong to request metadata. | // These are real keys which always belong to request metadata. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0