sentence1
stringlengths
52
3.87M
sentence2
stringlengths
1
47.2k
label
stringclasses
1 value
public static function getIsSet($param) { $blnReturn = (isset($_REQUEST[$param])); if (!$blnReturn) { //*** Try PUT or DELETE. $strPutValue = static::getHttpBodyValue($param); $blnReturn = (!is_null($strPutValue)); } return $blnReturn; }
Read parameters from the `$_REQUEST` array and body string and determine if it is "set". @param string $param The parameter to read @return boolean
entailment
public static function getHttpBodyValue($param, $varReplaceNotSet = null) { parse_str(file_get_contents('php://input'), $arrPostVars); $strReturn = (isset($arrPostVars[$param])) ? $arrPostVars[$param] : $varReplaceNotSet; return $strReturn; }
Get the value of a form field from the raw HTTP body. This is used for PUT and DELETE HTTP methods. @param string $param The parameter to read @param string $varReplaceNotSet Optional replace value when parameter is not set in the body @return string|array
entailment
protected function __toJS($strCustomJs = "", $arrInitArguments = array(), $blnRawJs = false) { $strReturn = ""; $strJs = ""; // *** Loop through all form elements and get their javascript code. foreach ($this->__elements as $element) { $strJs .= $element->toJS(); } // *** Form Events. foreach ($this->__jsevents as $event => $method) { $strJs .= "\tobjForm.addEvent(\"{$event}\", {$method});\n"; } // Indent javascript $strJs = str_replace("\n", "\n\t", $strJs); if (! $blnRawJs) { $strReturn .= "<script type=\"text/javascript\">\n"; $strReturn .= "// <![CDATA[\n"; } $strName = str_replace("-", "_", $this->__name); $strReturn .= "function {$strName}_init() {\n"; $strCalledClass = static::getStrippedClassName(get_called_class()); $strArguments = "\"{$this->__name}\", \"{$this->__mainalert}\""; if (count($arrInitArguments) > 0) { $strArguments = "\"{$this->__name}\", \"{$this->__mainalert}\", " . json_encode($arrInitArguments); } /** * If the ValidForm class is extended, try to initialize a custom javascript class with the same name as well * If that javascript class is not available / does not exist, continue initializing ValidForm as usual. */ if ($strCalledClass !== "ValidForm") { $strReturn .= "\tvar objForm = (typeof {$strCalledClass} !== \"undefined\") ? "; $strReturn .= "new {$strCalledClass}({$strArguments}) : "; $strReturn .= "new ValidForm(\"{$this->__name}\", \"{$this->__mainalert}\");\n"; } else { $strReturn .= "\tvar objForm = new ValidForm(\"{$this->__name}\", \"{$this->__mainalert}\");\n"; } $strReturn .= $strJs; if (! empty($strCustomJs)) { $strReturn .= $strCustomJs; } $strReturn .= "\tobjForm.initialize();\n"; $strReturn .= "\t$(\"#{$this->__name}\").data(\"vf__formElement\", objForm);"; $strReturn .= "};\n"; $strReturn .= "\n"; $strReturn .= "try {\n"; $strReturn .= "\tjQuery(function(){\n"; $strReturn .= "\t\t{$this->__name}_init();\n"; $strReturn .= "\t});\n"; $strReturn .= "} catch (e) {\n"; $strReturn .= "\talert('Exception caught while initiating ValidForm:\\n\\n' + e.message);\n"; $strReturn .= "}\n"; if (! $blnRawJs) { $strReturn .= "// ]]>\n"; $strReturn .= "</script>\n"; } return $strReturn; }
Generate javascript initialization code. This generates the javascript used to create a client-side ValidForm Builder instance. @param string $strCustomJs Optional custom javascript code to be executed at the same time the form is initialized @param array $arrInitArguments Only use this when initializing a custom client-side object. This is a flat array of arguments being passed to the custom client-side object. @param bool $blnRawJs If set to true, the generated javascript will not be wrapped in a <script> element. This is particulary useful when generating javascript to be returned to an AJAX response. @return string Generated javascript code
entailment
protected function elementShouldDisplay(Base $objElement) { $blnReturn = true; $objCondition = $objElement->getConditionRecursive("visible"); if (is_object($objCondition)) { // If the condition is met for the first element, // it automatically applies to the dynamic clones as well. // Therefore we only check dynamic counter 0 if ($objCondition->isMet(0)) { $blnReturn = $objCondition->getValue(); } else { $blnReturn = !$objCondition->getValue(); } } return $blnReturn; }
Check if an element should be visible according to an optionally attached "visible" condition. @param Base $objElement @return bool @throws \Exception
entailment
private function __validate() { $blnReturn = true; foreach ($this->__elements as $element) { if (! $element->isValid()) { $blnReturn = false; break; } } return $blnReturn; }
Loops trough all internal elements in the collection and validates each element. @return boolean True if all elements are valid, false if not.
entailment
private function __metaToData() { $strReturn = ""; if (isset($this->__meta["data"]) && is_array($this->__meta["data"])) { foreach ($this->__meta["data"] as $strKey => $strValue) { $strReturn .= "data-" . strtolower($strKey) . "=\"" . $strValue . "\" "; } } return $strReturn; }
This method converts all key-value pairs in the `$__meta['data']` array to "data-{key}='{value}' attributes @return string
entailment
public static function getStrippedClassName($classname) { // Find the position of the last occurrence of \\ in $classname with strrpos $pos = strrpos($classname, '\\'); if ($pos) { return substr($classname, $pos + 1); } return $classname; }
Returns the class name and strips off the namespace. @param string $classname The classname with optional namespace reference @return string Only the classname without the namespace.
entailment
public function getCorporationsCorporationId($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationId Get corporation information @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk
entailment
public function getCorporationsCorporationIdAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdAsync Get corporation information @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdAlliancehistory($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdAlliancehistoryWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdAlliancehistory Get alliance history @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]
entailment
public function getCorporationsCorporationIdAlliancehistoryAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdAlliancehistoryAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdAlliancehistoryAsync Get alliance history @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdBlueprints($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdBlueprintsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdBlueprints Get corporation blueprints @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[]
entailment
public function getCorporationsCorporationIdBlueprintsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdBlueprintsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdBlueprintsAsync Get corporation blueprints @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdContainersLogs($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdContainersLogsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdContainersLogs Get all corporation ALSC logs @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[]
entailment
public function getCorporationsCorporationIdContainersLogsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdContainersLogsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdContainersLogsAsync Get all corporation ALSC logs @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdDivisions($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdDivisionsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdDivisions Get corporation divisions @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk
entailment
public function getCorporationsCorporationIdDivisionsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdDivisionsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdDivisionsAsync Get corporation divisions @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdFacilities($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdFacilitiesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdFacilities Get corporation facilities @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[]
entailment
public function getCorporationsCorporationIdFacilitiesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdFacilitiesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdFacilitiesAsync Get corporation facilities @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdIcons($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdIconsWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdIcons Get corporation icon @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk
entailment
public function getCorporationsCorporationIdIconsAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdIconsAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdIconsAsync Get corporation icon @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMedals($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMedalsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMedals Get corporation medals @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[]
entailment
public function getCorporationsCorporationIdMedalsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMedalsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMedalsAsync Get corporation medals @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMedalsIssued($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMedalsIssuedWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMedalsIssued Get corporation issued medals @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[]
entailment
public function getCorporationsCorporationIdMedalsIssuedAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMedalsIssuedAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMedalsIssuedAsync Get corporation issued medals @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMembers($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMembersWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMembers Get corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return int[]
entailment
public function getCorporationsCorporationIdMembersAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMembersAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMembersAsync Get corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMembersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $returnType = 'int[]'; $request = $this->getCorporationsCorporationIdMembersRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { $content = json_decode($content); } } return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders() ]; }, function ($exception) { $response = $exception->getResponse(); $statusCode = $response->getStatusCode(); throw new ApiException( sprintf( '[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri() ), $statusCode, $response->getHeaders(), $response->getBody() ); } ); }
Operation getCorporationsCorporationIdMembersAsyncWithHttpInfo Get corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMembersLimit($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMembersLimitWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMembersLimit Get corporation member limit @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return int
entailment
public function getCorporationsCorporationIdMembersLimitAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMembersLimitAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMembersLimitAsync Get corporation member limit @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMembersTitles($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMembersTitlesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMembersTitles Get corporation's members' titles @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[]
entailment
public function getCorporationsCorporationIdMembersTitlesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMembersTitlesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMembersTitlesAsync Get corporation's members' titles @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdMembertracking($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdMembertrackingWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdMembertracking Track corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[]
entailment
public function getCorporationsCorporationIdMembertrackingAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdMembertrackingAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdMembertrackingAsync Track corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdOutposts($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdOutpostsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdOutposts Get corporation outposts @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return int[]
entailment
public function getCorporationsCorporationIdOutpostsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdOutpostsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdOutpostsAsync Get corporation outposts @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdOutpostsOutpostId($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdOutpostsOutpostIdWithHttpInfo($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdOutpostsOutpostId Get corporation outpost details @param int $corporationId An EVE corporation ID (required) @param int $outpostId A station (outpost) ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk
entailment
public function getCorporationsCorporationIdOutpostsOutpostIdAsync($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdOutpostsOutpostIdAsyncWithHttpInfo($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdOutpostsOutpostIdAsync Get corporation outpost details @param int $corporationId An EVE corporation ID (required) @param int $outpostId A station (outpost) ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdRolesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdRolesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdRolesAsync Get corporation member roles @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdRolesHistory($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdRolesHistoryWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdRolesHistory Get corporation member roles history @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[]
entailment
public function getCorporationsCorporationIdRolesHistoryAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdRolesHistoryAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdRolesHistoryAsync Get corporation member roles history @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdShareholders($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdShareholdersWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdShareholders Get corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[]
entailment
public function getCorporationsCorporationIdShareholdersAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdShareholdersAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdShareholdersAsync Get corporation members @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdStandings($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdStandingsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdStandings Get corporation standings @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[]
entailment
public function getCorporationsCorporationIdStandingsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdStandingsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdStandingsAsync Get corporation standings @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdStarbases($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdStarbasesWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdStarbases Get corporation starbases (POSes) @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[]
entailment
public function getCorporationsCorporationIdStarbasesAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdStarbasesAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdStarbasesAsync Get corporation starbases (POSes) @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdStarbasesStarbaseId($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdStarbasesStarbaseIdWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdStarbasesStarbaseId Get starbase (POS) detail @param int $corporationId An EVE corporation ID (required) @param int $starbaseId An EVE starbase (POS) ID (required) @param int $systemId The solar system this starbase (POS) is located in, (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk
entailment
public function getCorporationsCorporationIdStarbasesStarbaseIdAsync($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdStarbasesStarbaseIdAsyncWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdStarbasesStarbaseIdAsync Get starbase (POS) detail @param int $corporationId An EVE corporation ID (required) @param int $starbaseId An EVE starbase (POS) ID (required) @param int $systemId The solar system this starbase (POS) is located in, (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdStructures($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdStructuresWithHttpInfo($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdStructures Get corporation structures @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $language Language to use in the response (optional, default to en-us) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]
entailment
public function getCorporationsCorporationIdStructuresAsync($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdStructuresAsyncWithHttpInfo($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdStructuresAsync Get corporation structures @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $language Language to use in the response (optional, default to en-us) @param int $page Which page of results to return (optional, default to 1) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsCorporationIdTitles($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdTitlesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdTitles Get corporation titles @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[]
entailment
public function getCorporationsCorporationIdTitlesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdTitlesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdTitlesAsync Get corporation titles @param int $corporationId An EVE corporation ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsNamesAsync($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getCorporationsNamesAsyncWithHttpInfo($corporationIds, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsNamesAsync Get corporation names @param int[] $corporationIds A comma separated list of corporation IDs (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getCorporationsNpccorps($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsNpccorpsWithHttpInfo($datasource, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsNpccorps Get npc corporations @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return int[]
entailment
public function getCorporationsNpccorpsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getCorporationsNpccorpsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsNpccorpsAsync Get npc corporations @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function putCorporationsCorporationIdStructuresStructureId($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $this->putCorporationsCorporationIdStructuresStructureIdWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); }
Operation putCorporationsCorporationIdStructuresStructureId Update structure vulnerability schedule @param int $corporationId An EVE corporation ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) @param int $structureId A structure ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return void
entailment
public function putCorporationsCorporationIdStructuresStructureIdWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $returnType = ''; $request = $this->putCorporationsCorporationIdStructuresStructureIdRequest($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null ); } $statusCode = $response->getStatusCode(); if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( '[%d] Error connecting to the API (%s)', $statusCode, $request->getUri() ), $statusCode, $response->getHeaders(), $response->getBody() ); } return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), '\nullx27\ESI\nullx27\ESI\Models\Forbidden', $e->getResponseHeaders() ); $e->setResponseObject($data); break; case 500: $data = ObjectSerializer::deserialize( $e->getResponseBody(), '\nullx27\ESI\nullx27\ESI\Models\InternalServerError', $e->getResponseHeaders() ); $e->setResponseObject($data); break; } throw $e; } }
Operation putCorporationsCorporationIdStructuresStructureIdWithHttpInfo Update structure vulnerability schedule @param int $corporationId An EVE corporation ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) @param int $structureId A structure ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return array of null, HTTP status code, HTTP response headers (array of strings)
entailment
public function putCorporationsCorporationIdStructuresStructureIdAsync($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation putCorporationsCorporationIdStructuresStructureIdAsync Update structure vulnerability schedule @param int $corporationId An EVE corporation ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) @param int $structureId A structure ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $returnType = ''; $request = $this->putCorporationsCorporationIdStructuresStructureIdRequest($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); $statusCode = $response->getStatusCode(); throw new ApiException( sprintf( '[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri() ), $statusCode, $response->getHeaders(), $response->getBody() ); } ); }
Operation putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo Update structure vulnerability schedule @param int $corporationId An EVE corporation ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) @param int $structureId A structure ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use if unable to set a header (optional) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public static function createFromFriendlyEmail($email): Normal { $recipient = new self; list($displayName, $epostAddress) = self::splitFriendlyEmail($email); if (strlen($displayName)) { $recipient->setDisplayName($displayName); } $recipient->setEpostAddress($epostAddress); return $recipient; }
Create an instance by given (friendly) email string A friendly email includes the display name and is formatted like "John Doe <[email protected]>" @param string $email @return self
entailment
private static function splitFriendlyEmail($email) { if (false !== strpos($email, '<')) { return array_map('trim', explode(' <', str_replace('>', '', $email))); } elseif (false !== strpos($email, '[')) { return array_map('trim', explode(' [', str_replace(']', '', $email))); } else { return ['', $email]; } }
Split a friendly-name e-address and return name and e-mail as array @author Leo Feyer <https://github.com/leofeyer> for Contao Open Source CMS <https://github.com/contao> @param string $email A friendly-name e-mail address @return array An array with name and e-mail address
entailment
public function listInvalidProperties() { $invalidProperties = []; if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } if ((strlen($this->container['name']) > 40)) { $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 40."; } if ((strlen($this->container['name']) < 1)) { $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; } $allowedValues = $this->getColorAllowableValues(); if (!in_array($this->container['color'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'color', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; }
Show all the invalid properties with reasons. @return array invalid properties with reasons
entailment
public function valid() { if ($this->container['name'] === null) { return false; } if (strlen($this->container['name']) > 40) { return false; } if (strlen($this->container['name']) < 1) { return false; } $allowedValues = $this->getColorAllowableValues(); if (!in_array($this->container['color'], $allowedValues)) { return false; } return true; }
Validate all the properties in the model return true if all passed @return bool True if all properties are valid
entailment
public static function calculateCIDRToFit(Address $address1, Address $address2) { return (int) floor(32 - log(($address1->get() ^ $address2->get()) + 1, 2)); }
Given two (2) IP (V4) addresses, calculate a CIDR prefix for the network which could contain them both. @param \JAAulde\IP\V4\Address $address1 @param \JAAulde\IP\V4\Address $address2
entailment
public static function fromCIDRPrefix($prefixSize) { if (!is_int($prefixSize)) { throw new \Exception(__METHOD__.' requires first param, $prefixSize, to be an integer'); } if ($prefixSize < 1 || $prefixSize > 31) { throw new \Exception(__METHOD__.' requires first param, $prefixSize, to be CIDR prefix size with value between 1 and 31 (inclusive)'); } return new self(bindec(str_repeat('1', $prefixSize).str_repeat('0', 32 - $prefixSize))); }
Factory method for producing a SubnetMask instance from a CIDR (slash notation) prefix size. @param int $prefixSize Number of network bits to be represented by the subnet mask @return self @throws Exception
entailment
public function regenerateUrls() { $router = Router::getInstance(); try { $router->hydrateRouting(); $router->simpatize(); Security::getInstance()->setFlash("callback_message", t("Rutas generadas correctamente")); Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true)); } catch (\Exception $e) { Logger::log($e->getMessage(), LOG_ERR); Security::getInstance()->setFlash("callback_message", t("Algo no ha salido bien, revisa los logs")); Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true)); } return $this->redirect('admin-routes'); }
Service to regenerate routes @GET @route /admin/routes/gen @label Regenerar rutas @visible false @return string HTML
entailment
public function setMode(string $mode): DB { if (!in_array($mode, ['queries', 'batch'])) { throw new NeuralyzerException('Mode could be only queries or batch'); } $this->mode = $mode; return $this; }
Set the mode for update / insert @param string $mode @throws NeuralyzerException @return DB
entailment
public function processEntity(string $entity, callable $callback = null): array { $this->dbUtils->assertTableExists($entity); $this->priKey = $this->dbUtils->getPrimaryKey($entity); $this->entityCols = $this->dbUtils->getTableCols($entity); $this->entity = $entity; $actionsOnThatEntity = $this->whatToDoWithEntity(); $this->queries = []; // Prepare CSV if ($this->mode === 'batch') { $this->csv = new CSVWriter(); $this->csv->setCsvControl('|', $this->dbHelper->getEnclosureForCSV()); } // Wrap everything in a transaction $conn = $this->dbUtils->getConn(); try { $conn->beginTransaction(); if ($actionsOnThatEntity & self::UPDATE_TABLE) { $this->updateData($callback); } if ($actionsOnThatEntity & self::INSERT_TABLE) { $this->insertData($callback); } $conn->commit(); } catch (\Exception $e) { $conn->rollBack(); $conn->close(); // To avoid locks throw $e; } return $this->queries; }
Process an entity by reading / writing to the DB @param string $entity @param callable|null $callback @throws \Exception @return array
entailment
private function updateData($callback = null): void { $queryBuilder = $this->dbUtils->getConn()->createQueryBuilder(); if ($this->limit === 0) { $this->setLimit($this->dbUtils->countResults($this->entity)); } $this->expression->evaluateExpressions( $this->configEntities[$this->entity]['pre_actions'] ); $startAt = 0; // The first part of the limit (offset) $num = 0; // The number of rows updated while ($num < $this->limit) { $rows = $queryBuilder ->select('*')->from($this->entity) ->setFirstResult($startAt)->setMaxResults($this->batchSize) ->orderBy($this->priKey) ->execute(); // I need to read line by line if I have to update the table // to make sure I do update by update (slower but no other choice for now) foreach ($rows as $row) { // Call the right method according to the mode $this->{$this->updateMode[$this->mode]}($row); if ($callback !== null) { $callback(++$num); } // Have to exit now as we have reached the max if ($num >= $this->limit) { break 2; } } // Move the offset // Make sure the loop ends if we have nothing to process $num = $startAt += $this->batchSize; } // Run a final method if defined if ($this->mode === 'batch') { $this->loadDataInBatch('update'); } $this->expression->evaluateExpressions( $this->configEntities[$this->entity]['post_actions'] ); }
Update data of db table. @param callable $callback @return void
entailment
private function doUpdateByQueries(array $row): void { $data = $this->generateFakeData(); $queryBuilder = $this->dbUtils->getConn()->createQueryBuilder(); $queryBuilder = $queryBuilder->update($this->entity); foreach ($data as $field => $value) { $value = empty($row[$field]) ? $this->dbUtils->getEmptyValue($this->entityCols[$field]['type']) : $value; $condition = $this->dbUtils->getCondition($field, $this->entityCols[$field]); $queryBuilder = $queryBuilder->set($field, $condition); $queryBuilder = $queryBuilder->setParameter(":$field", $value); } $queryBuilder = $queryBuilder->where("{$this->priKey} = :{$this->priKey}"); $queryBuilder = $queryBuilder->setParameter(":{$this->priKey}", $row[$this->priKey]); $this->returnRes === true ? array_push($this->queries, $this->dbUtils->getRawSQL($queryBuilder)) : null; if ($this->pretend === false) { $queryBuilder->execute(); } }
Execute the Update with Doctrine QueryBuilder @SuppressWarnings("unused") - Used dynamically @param array $row Full row @throws NeuralyzerConfigurationException
entailment
private function doBatchUpdate(array $row): void { $fakeData = $this->generateFakeData(); $data = []; // Go trough all fields, and take a value by priority foreach (array_keys($this->entityCols) as $field) { // First take the fake data $data[$field] = $row[$field]; if (!empty($row[$field]) && array_key_exists($field, $fakeData)) { $data[$field] = $fakeData[$field]; } } $this->csv->write($data); }
Write the line required for a later LOAD DATA (or \copy) @SuppressWarnings("unused") - Used dynamically @param array $row Full row @throws NeuralyzerConfigurationException
entailment
private function insertData($callback = null): void { $this->expression->evaluateExpressions( $this->configEntities[$this->entity]['pre_actions'] ); for ($rowNum = 1; $rowNum <= $this->limit; $rowNum++) { // Call the right method according to the mode $this->{$this->insertMode[$this->mode]}($rowNum); if (!is_null($callback)) { $callback($rowNum); } } // Run a final method if defined if ($this->mode === 'batch') { $this->loadDataInBatch('insert'); } $this->expression->evaluateExpressions( $this->configEntities[$this->entity]['post_actions'] ); }
Insert data into table @param callable $callback
entailment
private function doInsertByQueries(): void { $data = $this->generateFakeData(); $queryBuilder = $this->dbUtils->getConn()->createQueryBuilder(); $queryBuilder = $queryBuilder->insert($this->entity); foreach ($data as $field => $value) { $queryBuilder = $queryBuilder->setValue($field, ":$field"); $queryBuilder = $queryBuilder->setParameter(":$field", $value); } $this->returnRes === true ? array_push($this->queries, $this->dbUtils->getRawSQL($queryBuilder)) : null; if ($this->pretend === false) { $queryBuilder->execute(); } }
Execute an INSERT with Doctrine QueryBuilder @SuppressWarnings("unused") - Used dynamically
entailment
private function loadDataInBatch(string $mode): void { $fields = array_keys($this->configEntities[$this->entity]['cols']); // Replace by all fields if update as we have to load everything if ($mode === 'update') { $fields = array_keys($this->entityCols); } // Load the data from the helper, only if pretend is false $filename = $this->csv->getRealPath(); $this->dbHelper->setPretend($this->pretend); $sql = $this->dbHelper->loadData($this->entity, $filename, $fields, $mode); $this->returnRes === true ? array_push($this->queries, $sql) : null; // Destroy the file unlink($this->csv->getRealPath()); }
If a file has been created for the batch mode, destroy it @SuppressWarnings("unused") - Used dynamically @param string $mode "update" or "insert"
entailment
public function getActionAllowableValues() { return [ self::ACTION_ADD, self::ACTION_ASSEMBLE, self::ACTION_CONFIGURE, self::ACTION_ENTER_PASSWORD, self::ACTION_LOCK, self::ACTION_MOVE, self::ACTION_REPACKAGE, self::ACTION_SET_NAME, self::ACTION_SET_PASSWORD, self::ACTION_UNLOCK, ]; }
Gets allowable values of the enum @return string[]
entailment
public function listInvalidProperties() { $invalidProperties = []; if ($this->container['loggedAt'] === null) { $invalidProperties[] = "'loggedAt' can't be null"; } if ($this->container['containerId'] === null) { $invalidProperties[] = "'containerId' can't be null"; } if ($this->container['containerTypeId'] === null) { $invalidProperties[] = "'containerTypeId' can't be null"; } if ($this->container['characterId'] === null) { $invalidProperties[] = "'characterId' can't be null"; } if ($this->container['locationId'] === null) { $invalidProperties[] = "'locationId' can't be null"; } if ($this->container['locationFlag'] === null) { $invalidProperties[] = "'locationFlag' can't be null"; } $allowedValues = $this->getLocationFlagAllowableValues(); if (!in_array($this->container['locationFlag'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'locationFlag', must be one of '%s'", implode("', '", $allowedValues) ); } if ($this->container['action'] === null) { $invalidProperties[] = "'action' can't be null"; } $allowedValues = $this->getActionAllowableValues(); if (!in_array($this->container['action'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'action', must be one of '%s'", implode("', '", $allowedValues) ); } $allowedValues = $this->getPasswordTypeAllowableValues(); if (!in_array($this->container['passwordType'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'passwordType', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; }
Show all the invalid properties with reasons. @return array invalid properties with reasons
entailment
public function valid() { if ($this->container['loggedAt'] === null) { return false; } if ($this->container['containerId'] === null) { return false; } if ($this->container['containerTypeId'] === null) { return false; } if ($this->container['characterId'] === null) { return false; } if ($this->container['locationId'] === null) { return false; } if ($this->container['locationFlag'] === null) { return false; } $allowedValues = $this->getLocationFlagAllowableValues(); if (!in_array($this->container['locationFlag'], $allowedValues)) { return false; } if ($this->container['action'] === null) { return false; } $allowedValues = $this->getActionAllowableValues(); if (!in_array($this->container['action'], $allowedValues)) { return false; } $allowedValues = $this->getPasswordTypeAllowableValues(); if (!in_array($this->container['passwordType'], $allowedValues)) { return false; } return true; }
Validate all the properties in the model return true if all passed @return bool True if all properties are valid
entailment
public function setAction($action) { $allowedValues = $this->getActionAllowableValues(); if (!in_array($action, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'action', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['action'] = $action; return $this; }
Sets action @param string $action action string @return $this
entailment
public function setPasswordType($passwordType) { $allowedValues = $this->getPasswordTypeAllowableValues(); if (!is_null($passwordType) && !in_array($passwordType, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'passwordType', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['passwordType'] = $passwordType; return $this; }
Sets passwordType @param string $passwordType Type of password set if action is of type SetPassword or EnterPassword @return $this
entailment
public function getRoleTypeAllowableValues() { return [ self::ROLE_TYPE_GRANTABLE_ROLES, self::ROLE_TYPE_GRANTABLE_ROLES_AT_BASE, self::ROLE_TYPE_GRANTABLE_ROLES_AT_HQ, self::ROLE_TYPE_GRANTABLE_ROLES_AT_OTHER, self::ROLE_TYPE_ROLES, self::ROLE_TYPE_ROLES_AT_BASE, self::ROLE_TYPE_ROLES_AT_HQ, self::ROLE_TYPE_ROLES_AT_OTHER, ]; }
Gets allowable values of the enum @return string[]
entailment
public function getOldRolesAllowableValues() { return [ self::OLD_ROLES_ACCOUNT_TAKE_1, self::OLD_ROLES_ACCOUNT_TAKE_2, self::OLD_ROLES_ACCOUNT_TAKE_3, self::OLD_ROLES_ACCOUNT_TAKE_4, self::OLD_ROLES_ACCOUNT_TAKE_5, self::OLD_ROLES_ACCOUNT_TAKE_6, self::OLD_ROLES_ACCOUNT_TAKE_7, self::OLD_ROLES_ACCOUNTANT, self::OLD_ROLES_AUDITOR, self::OLD_ROLES_COMMUNICATIONS_OFFICER, self::OLD_ROLES_CONFIG_EQUIPMENT, self::OLD_ROLES_CONFIG_STARBASE_EQUIPMENT, self::OLD_ROLES_CONTAINER_TAKE_1, self::OLD_ROLES_CONTAINER_TAKE_2, self::OLD_ROLES_CONTAINER_TAKE_3, self::OLD_ROLES_CONTAINER_TAKE_4, self::OLD_ROLES_CONTAINER_TAKE_5, self::OLD_ROLES_CONTAINER_TAKE_6, self::OLD_ROLES_CONTAINER_TAKE_7, self::OLD_ROLES_CONTRACT_MANAGER, self::OLD_ROLES_DIPLOMAT, self::OLD_ROLES_DIRECTOR, self::OLD_ROLES_FACTORY_MANAGER, self::OLD_ROLES_FITTING_MANAGER, self::OLD_ROLES_HANGAR_QUERY_1, self::OLD_ROLES_HANGAR_QUERY_2, self::OLD_ROLES_HANGAR_QUERY_3, self::OLD_ROLES_HANGAR_QUERY_4, self::OLD_ROLES_HANGAR_QUERY_5, self::OLD_ROLES_HANGAR_QUERY_6, self::OLD_ROLES_HANGAR_QUERY_7, self::OLD_ROLES_HANGAR_TAKE_1, self::OLD_ROLES_HANGAR_TAKE_2, self::OLD_ROLES_HANGAR_TAKE_3, self::OLD_ROLES_HANGAR_TAKE_4, self::OLD_ROLES_HANGAR_TAKE_5, self::OLD_ROLES_HANGAR_TAKE_6, self::OLD_ROLES_HANGAR_TAKE_7, self::OLD_ROLES_JUNIOR_ACCOUNTANT, self::OLD_ROLES_PERSONNEL_MANAGER, self::OLD_ROLES_RENT_FACTORY_FACILITY, self::OLD_ROLES_RENT_OFFICE, self::OLD_ROLES_RENT_RESEARCH_FACILITY, self::OLD_ROLES_SECURITY_OFFICER, self::OLD_ROLES_STARBASE_DEFENSE_OPERATOR, self::OLD_ROLES_STARBASE_FUEL_TECHNICIAN, self::OLD_ROLES_STATION_MANAGER, self::OLD_ROLES_TERRESTRIAL_COMBAT_OFFICER, self::OLD_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, self::OLD_ROLES_TRADER, ]; }
Gets allowable values of the enum @return string[]
entailment
public function getNewRolesAllowableValues() { return [ self::NEW_ROLES_ACCOUNT_TAKE_1, self::NEW_ROLES_ACCOUNT_TAKE_2, self::NEW_ROLES_ACCOUNT_TAKE_3, self::NEW_ROLES_ACCOUNT_TAKE_4, self::NEW_ROLES_ACCOUNT_TAKE_5, self::NEW_ROLES_ACCOUNT_TAKE_6, self::NEW_ROLES_ACCOUNT_TAKE_7, self::NEW_ROLES_ACCOUNTANT, self::NEW_ROLES_AUDITOR, self::NEW_ROLES_COMMUNICATIONS_OFFICER, self::NEW_ROLES_CONFIG_EQUIPMENT, self::NEW_ROLES_CONFIG_STARBASE_EQUIPMENT, self::NEW_ROLES_CONTAINER_TAKE_1, self::NEW_ROLES_CONTAINER_TAKE_2, self::NEW_ROLES_CONTAINER_TAKE_3, self::NEW_ROLES_CONTAINER_TAKE_4, self::NEW_ROLES_CONTAINER_TAKE_5, self::NEW_ROLES_CONTAINER_TAKE_6, self::NEW_ROLES_CONTAINER_TAKE_7, self::NEW_ROLES_CONTRACT_MANAGER, self::NEW_ROLES_DIPLOMAT, self::NEW_ROLES_DIRECTOR, self::NEW_ROLES_FACTORY_MANAGER, self::NEW_ROLES_FITTING_MANAGER, self::NEW_ROLES_HANGAR_QUERY_1, self::NEW_ROLES_HANGAR_QUERY_2, self::NEW_ROLES_HANGAR_QUERY_3, self::NEW_ROLES_HANGAR_QUERY_4, self::NEW_ROLES_HANGAR_QUERY_5, self::NEW_ROLES_HANGAR_QUERY_6, self::NEW_ROLES_HANGAR_QUERY_7, self::NEW_ROLES_HANGAR_TAKE_1, self::NEW_ROLES_HANGAR_TAKE_2, self::NEW_ROLES_HANGAR_TAKE_3, self::NEW_ROLES_HANGAR_TAKE_4, self::NEW_ROLES_HANGAR_TAKE_5, self::NEW_ROLES_HANGAR_TAKE_6, self::NEW_ROLES_HANGAR_TAKE_7, self::NEW_ROLES_JUNIOR_ACCOUNTANT, self::NEW_ROLES_PERSONNEL_MANAGER, self::NEW_ROLES_RENT_FACTORY_FACILITY, self::NEW_ROLES_RENT_OFFICE, self::NEW_ROLES_RENT_RESEARCH_FACILITY, self::NEW_ROLES_SECURITY_OFFICER, self::NEW_ROLES_STARBASE_DEFENSE_OPERATOR, self::NEW_ROLES_STARBASE_FUEL_TECHNICIAN, self::NEW_ROLES_STATION_MANAGER, self::NEW_ROLES_TERRESTRIAL_COMBAT_OFFICER, self::NEW_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, self::NEW_ROLES_TRADER, ]; }
Gets allowable values of the enum @return string[]
entailment
public function setRoleType($roleType) { $allowedValues = $this->getRoleTypeAllowableValues(); if (!in_array($roleType, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'roleType', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['roleType'] = $roleType; return $this; }
Sets roleType @param string $roleType role_type string @return $this
entailment
public function setOldRoles($oldRoles) { $allowedValues = $this->getOldRolesAllowableValues(); if (array_diff($oldRoles, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'oldRoles', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['oldRoles'] = $oldRoles; return $this; }
Sets oldRoles @param string[] $oldRoles old_roles array @return $this
entailment
public function setNewRoles($newRoles) { $allowedValues = $this->getNewRolesAllowableValues(); if (array_diff($newRoles, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'newRoles', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['newRoles'] = $newRoles; return $this; }
Sets newRoles @param string[] $newRoles new_roles array @return $this
entailment
public function toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayErrors = true) { if (! empty($this->__disabled)) { $this->setFieldMeta("disabled", "disabled"); } $strReturn = "<input type=\"{$this->__type}\" value=\"{$this->__label}\"{$this->__getFieldMetaString()} />\n"; return $strReturn; }
Generate the HTML output for this button @param boolean $submitted Obsolete property only used to keep method fingerprint compatible @param boolean $blnSimpleLayout Obsolete property only used to keep method fingerprint compatible @param boolean $blnLabel Obsolete property only used to keep method fingerprint compatible @param boolean $blnDisplayErrors Obsolete property only used to keep method fingerprint compatible @return string Generated HTML output
entailment
public function check($intDynamicPosition = 0) { $blnReturn = false; if ($this->__subject instanceof Element) { // Any element based on Element $strValue = $this->__subject->__getValue(true, $intDynamicPosition); $strValue = (is_null($strValue)) ? $strValue = $this->__subject->getValue($intDynamicPosition) : $strValue; if (! is_null($strValue)) { // *** Get the postioned value if a dynamic field is part of a comparison. if (is_array($strValue) && isset($strValue[$intDynamicPosition])) { $strValue = $strValue[$intDynamicPosition]; } $blnReturn = $this->__verify($strValue); } } else { throw new \Exception("Invalid subject supplied in Comparison. Class " . get_class($this->__subject) . " given. Expecting instance of Element.", 1); } return $blnReturn; }
Check this comparison @param integer Dynamic position of the subject to check @return boolean True if Comparison meets requirements, false if not.
entailment
public function jsonSerialize($intDynamicPosition = null) { if (get_class($this->__subject) == "ValidFormBuilder\\GroupField") { $identifier = $this->__subject->getId(); } else { $identifier = $this->__subject->getName(); if ($intDynamicPosition > 0) { $identifier = $identifier . "_" . $intDynamicPosition; } } $arrReturn = array( "subject" => $identifier, // For now, this ony applies to fields and should apply to both fields, area's, fieldsets and paragraphs. "comparison" => $this->__comparison, "value" => $this->__value ); return $arrReturn; }
Convert the Comparion's contents to a json string in order to validate this comparison client-side @param string $intDynamicPosition @return array The generated JSON
entailment
private function __verify($strValue) { $blnReturn = false; $strLowerValue = strtolower($strValue); $strCompareAgainst = (is_string($this->__value)) ? strtolower($this->__value) : null; switch ($this->__comparison) { case ValidForm::VFORM_COMPARISON_EQUAL: $blnReturn = ($strLowerValue == $strCompareAgainst); break; case ValidForm::VFORM_COMPARISON_NOT_EQUAL: $blnReturn = ($strLowerValue != $strCompareAgainst); break; case ValidForm::VFORM_COMPARISON_LESS_THAN: $blnReturn = ($strValue < $this->__value); break; case ValidForm::VFORM_COMPARISON_GREATER_THAN: $blnReturn = ($strValue > $this->__value); break; case ValidForm::VFORM_COMPARISON_LESS_THAN_OR_EQUAL: $blnReturn = ($strValue <= $this->__value); break; case ValidForm::VFORM_COMPARISON_GREATER_THAN_OR_EQUAL: $blnReturn = ($strValue >= $this->__value); break; case ValidForm::VFORM_COMPARISON_EMPTY: $blnReturn = empty($strValue); break; case ValidForm::VFORM_COMPARISON_NOT_EMPTY: $blnReturn = ! empty($strValue); break; case ValidForm::VFORM_COMPARISON_STARTS_WITH: // strpos is faster than substr and way faster than preg_match. $blnReturn = (strpos($strLowerValue, $strCompareAgainst) === 0); break; case ValidForm::VFORM_COMPARISON_ENDS_WITH: $blnReturn = (substr($strLowerValue, - strlen($strCompareAgainst)) === $strCompareAgainst); break; case ValidForm::VFORM_COMPARISON_CONTAINS: $blnReturn = (strpos($strLowerValue, $strCompareAgainst) !== false); break; case ValidForm::VFORM_COMPARISON_REGEX: $blnReturn = preg_match($this->__value, $strValue); break; case ValidForm::VFORM_COMPARISON_IN_ARRAY: $blnReturn = in_array($strValue, $this->__value); break; case ValidForm::VFORM_COMPARISON_NOT_IN_ARRAY: $blnReturn = !in_array($strValue, $this->__value); break; } return $blnReturn; }
Verify this comparison against the actual value @param string $strValue The actual value that is submitted @return boolean True if comparison succeeded, false if not.
entailment
public function getAlliances($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getAlliancesWithHttpInfo($datasource, $userAgent, $xUserAgent); return $response; }
Operation getAlliances List all alliances @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return int[]
entailment
public function getAlliancesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getAlliancesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getAlliancesAsync List all alliances @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getAlliancesAllianceIdAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getAlliancesAllianceIdAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getAlliancesAllianceIdAsync Get alliance information @param int $allianceId An EVE alliance ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getAlliancesAllianceIdCorporationsAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getAlliancesAllianceIdCorporationsAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getAlliancesAllianceIdCorporationsAsync List alliance's corporations @param int $allianceId An EVE alliance ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getAlliancesAllianceIdIconsAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getAlliancesAllianceIdIconsAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getAlliancesAllianceIdIconsAsync Get alliance icon @param int $allianceId An EVE alliance ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function getAlliancesNames($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getAlliancesNamesWithHttpInfo($allianceIds, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getAlliancesNames Get alliance names @param int[] $allianceIds A comma separated list of alliance IDs (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \nullx27\ESI\ApiException on non-2xx response @throws \InvalidArgumentException @return \nullx27\ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[]
entailment
public function getAlliancesNamesAsync($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getAlliancesNamesAsyncWithHttpInfo($allianceIds, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getAlliancesNamesAsync Get alliance names @param int[] $allianceIds A comma separated list of alliance IDs (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $userAgent Client identifier, takes precedence over headers (optional) @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) @throws \InvalidArgumentException @return \GuzzleHttp\Promise\PromiseInterface
entailment
public function setFromType($fromType) { $allowedValues = $this->getFromTypeAllowableValues(); if (!in_array($fromType, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'fromType', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['fromType'] = $fromType; return $this; }
Sets fromType @param string $fromType from_type string @return $this
entailment
public static function clearDocumentRoot() { $rootDirs = array("css", "js", "media", "font"); foreach ($rootDirs as $dir) { if (file_exists(WEB_DIR . DIRECTORY_SEPARATOR . $dir)) { try { self::deleteDir(WEB_DIR . DIRECTORY_SEPARATOR . $dir); } catch (\Exception $e) { Logger::log($e->getMessage()); } } } }
Method that remove all data in the document root path
entailment
public static function createDir($dir) { try { if (!is_dir($dir) && @mkdir($dir, 0775, true) === false) { throw new \Exception(t('Can\'t create directory ') . $dir); } } catch (\Exception $e) { Logger::log($e->getMessage(), LOG_WARNING); if (!file_exists(dirname($dir))) { throw new GeneratorException($e->getMessage() . $dir); } } }
Method that creates any parametrized path @param string $dir @throws GeneratorException
entailment