sentence1
stringlengths
52
3.87M
sentence2
stringlengths
1
47.2k
label
stringclasses
1 value
public static function getTemplatePath() { $path = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR; return realpath($path); }
Method that returns the templates path @return string
entailment
public function getSpectralClassAllowableValues() { return [ self::SPECTRAL_CLASS_K2_V, self::SPECTRAL_CLASS_K4_V, self::SPECTRAL_CLASS_G2_V, self::SPECTRAL_CLASS_G8_V, self::SPECTRAL_CLASS_M7_V, self::SPECTRAL_CLASS_K7_V, self::SPECTRAL_CLASS_M2_V, self::SPECTRAL_CLASS_K5_V, self::SPECTRAL_CLASS_M3_V, self::SPECTRAL_CLASS_G0_V, self::SPECTRAL_CLASS_G7_V, self::SPECTRAL_CLASS_G3_V, self::SPECTRAL_CLASS_F9_V, self::SPECTRAL_CLASS_G5_V, self::SPECTRAL_CLASS_F6_V, self::SPECTRAL_CLASS_K8_V, self::SPECTRAL_CLASS_K9_V, self::SPECTRAL_CLASS_K6_V, self::SPECTRAL_CLASS_G9_V, self::SPECTRAL_CLASS_G6_V, self::SPECTRAL_CLASS_G4_VI, self::SPECTRAL_CLASS_G4_V, self::SPECTRAL_CLASS_F8_V, self::SPECTRAL_CLASS_F2_V, self::SPECTRAL_CLASS_F1_V, self::SPECTRAL_CLASS_K3_V, self::SPECTRAL_CLASS_F0_VI, self::SPECTRAL_CLASS_G1_VI, self::SPECTRAL_CLASS_G0_VI, self::SPECTRAL_CLASS_K1_V, self::SPECTRAL_CLASS_M4_V, self::SPECTRAL_CLASS_M1_V, self::SPECTRAL_CLASS_M6_V, self::SPECTRAL_CLASS_M0_V, self::SPECTRAL_CLASS_K2_IV, self::SPECTRAL_CLASS_G2_VI, self::SPECTRAL_CLASS_K0_V, self::SPECTRAL_CLASS_K5_IV, self::SPECTRAL_CLASS_F5_VI, self::SPECTRAL_CLASS_G6_VI, self::SPECTRAL_CLASS_F6_VI, self::SPECTRAL_CLASS_F2_IV, self::SPECTRAL_CLASS_G3_VI, self::SPECTRAL_CLASS_M8_V, self::SPECTRAL_CLASS_F1_VI, self::SPECTRAL_CLASS_K1_IV, self::SPECTRAL_CLASS_F7_V, self::SPECTRAL_CLASS_G5_VI, self::SPECTRAL_CLASS_M5_V, self::SPECTRAL_CLASS_G7_VI, self::SPECTRAL_CLASS_F5_V, self::SPECTRAL_CLASS_F4_VI, self::SPECTRAL_CLASS_F8_VI, self::SPECTRAL_CLASS_K3_IV, self::SPECTRAL_CLASS_F4_IV, self::SPECTRAL_CLASS_F0_V, self::SPECTRAL_CLASS_G7_IV, self::SPECTRAL_CLASS_G8_VI, self::SPECTRAL_CLASS_F2_VI, self::SPECTRAL_CLASS_F4_V, self::SPECTRAL_CLASS_F7_VI, self::SPECTRAL_CLASS_F3_V, self::SPECTRAL_CLASS_G1_V, self::SPECTRAL_CLASS_G9_VI, self::SPECTRAL_CLASS_F3_IV, self::SPECTRAL_CLASS_F9_VI, self::SPECTRAL_CLASS_M9_V, self::SPECTRAL_CLASS_K0_IV, self::SPECTRAL_CLASS_F1_IV, self::SPECTRAL_CLASS_G4_IV, self::SPECTRAL_CLASS_F3_VI, self::SPECTRAL_CLASS_K4_IV, self::SPECTRAL_CLASS_G5_IV, self::SPECTRAL_CLASS_G3_IV, self::SPECTRAL_CLASS_G1_IV, self::SPECTRAL_CLASS_K7_IV, self::SPECTRAL_CLASS_G0_IV, self::SPECTRAL_CLASS_K6_IV, self::SPECTRAL_CLASS_K9_IV, self::SPECTRAL_CLASS_G2_IV, self::SPECTRAL_CLASS_F9_IV, self::SPECTRAL_CLASS_F0_IV, self::SPECTRAL_CLASS_K8_IV, self::SPECTRAL_CLASS_G8_IV, self::SPECTRAL_CLASS_F6_IV, self::SPECTRAL_CLASS_F5_IV, self::SPECTRAL_CLASS_A0, self::SPECTRAL_CLASS_A0_IV, self::SPECTRAL_CLASS_A0_IV2, ]; }
Gets allowable values of the enum @return string[]
entailment
public function setSpectralClass($spectralClass) { $allowedValues = $this->getSpectralClassAllowableValues(); if (!in_array($spectralClass, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'spectralClass', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['spectralClass'] = $spectralClass; return $this; }
Sets spectralClass @param string $spectralClass spectral_class string @return $this
entailment
public function getStandingLevelAllowableValues() { return [ self::STANDING_LEVEL_BAD, self::STANDING_LEVEL_EXCELLENT, self::STANDING_LEVEL_GOOD, self::STANDING_LEVEL_NEUTRAL, self::STANDING_LEVEL_TERRIBLE, ]; }
Gets allowable values of the enum @return string[]
entailment
public function setReinforceExitStart($reinforceExitStart) { if (($reinforceExitStart > 23)) { throw new \InvalidArgumentException('invalid value for $reinforceExitStart when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be smaller than or equal to 23.'); } if (($reinforceExitStart < 0)) { throw new \InvalidArgumentException('invalid value for $reinforceExitStart when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be bigger than or equal to 0.'); } $this->container['reinforceExitStart'] = $reinforceExitStart; return $this; }
Sets reinforceExitStart @param int $reinforceExitStart Together with reinforce_exit_end, marks a 2-hour period where this customs office could exit reinforcement mode during the day after initial attack @return $this
entailment
public function setReinforceExitEnd($reinforceExitEnd) { if (($reinforceExitEnd > 23)) { throw new \InvalidArgumentException('invalid value for $reinforceExitEnd when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be smaller than or equal to 23.'); } if (($reinforceExitEnd < 0)) { throw new \InvalidArgumentException('invalid value for $reinforceExitEnd when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be bigger than or equal to 0.'); } $this->container['reinforceExitEnd'] = $reinforceExitEnd; return $this; }
Sets reinforceExitEnd @param int $reinforceExitEnd reinforce_exit_end integer @return $this
entailment
public function setStandingLevel($standingLevel) { $allowedValues = $this->getStandingLevelAllowableValues(); if (!is_null($standingLevel) && !in_array($standingLevel, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'standingLevel', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['standingLevel'] = $standingLevel; return $this; }
Sets standingLevel @param string $standingLevel Access is allowed only for entities with this level of standing or better @return $this
entailment
public function getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdCalendarEventId Get an event @param int $characterId The character id requesting the event (required) @param int $eventId The id of the event requested (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk
entailment
public function putCharactersCharacterIdCalendarEventId($characterId, $eventId, $response, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->putCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation putCharactersCharacterIdCalendarEventId Respond to an event @param int $characterId The character ID requesting the event (required) @param int $eventId The ID of the event requested (required) @param \nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return void
entailment
public function getTypeAllowableValues() { return [ self::TYPE_UNKNOWN, self::TYPE_ITEM_EXCHANGE, self::TYPE_AUCTION, self::TYPE_COURIER, self::TYPE_LOAN, ]; }
Gets allowable values of the enum @return string[]
entailment
public function getStatusAllowableValues() { return [ self::STATUS_OUTSTANDING, self::STATUS_IN_PROGRESS, self::STATUS_FINISHED_ISSUER, self::STATUS_FINISHED_CONTRACTOR, self::STATUS_FINISHED, self::STATUS_CANCELLED, self::STATUS_REJECTED, self::STATUS_FAILED, self::STATUS_DELETED, self::STATUS_REVERSED, ]; }
Gets allowable values of the enum @return string[]
entailment
public function listInvalidProperties() { $invalidProperties = []; if ($this->container['contractId'] === null) { $invalidProperties[] = "'contractId' can't be null"; } if ($this->container['issuerId'] === null) { $invalidProperties[] = "'issuerId' can't be null"; } if ($this->container['issuerCorporationId'] === null) { $invalidProperties[] = "'issuerCorporationId' can't be null"; } if ($this->container['assigneeId'] === null) { $invalidProperties[] = "'assigneeId' can't be null"; } if ($this->container['acceptorId'] === null) { $invalidProperties[] = "'acceptorId' can't be null"; } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); if (!in_array($this->container['type'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) ); } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); if (!in_array($this->container['status'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'status', must be one of '%s'", implode("', '", $allowedValues) ); } if ($this->container['forCorporation'] === null) { $invalidProperties[] = "'forCorporation' can't be null"; } if ($this->container['availability'] === null) { $invalidProperties[] = "'availability' can't be null"; } $allowedValues = $this->getAvailabilityAllowableValues(); if (!in_array($this->container['availability'], $allowedValues)) { $invalidProperties[] = sprintf( "invalid value for 'availability', must be one of '%s'", implode("', '", $allowedValues) ); } if ($this->container['dateIssued'] === null) { $invalidProperties[] = "'dateIssued' can't be null"; } if ($this->container['dateExpired'] === null) { $invalidProperties[] = "'dateExpired' can't be null"; } return $invalidProperties; }
Show all the invalid properties with reasons. @return array invalid properties with reasons
entailment
public function valid() { if ($this->container['contractId'] === null) { return false; } if ($this->container['issuerId'] === null) { return false; } if ($this->container['issuerCorporationId'] === null) { return false; } if ($this->container['assigneeId'] === null) { return false; } if ($this->container['acceptorId'] === null) { return false; } if ($this->container['type'] === null) { return false; } $allowedValues = $this->getTypeAllowableValues(); if (!in_array($this->container['type'], $allowedValues)) { return false; } if ($this->container['status'] === null) { return false; } $allowedValues = $this->getStatusAllowableValues(); if (!in_array($this->container['status'], $allowedValues)) { return false; } if ($this->container['forCorporation'] === null) { return false; } if ($this->container['availability'] === null) { return false; } $allowedValues = $this->getAvailabilityAllowableValues(); if (!in_array($this->container['availability'], $allowedValues)) { return false; } if ($this->container['dateIssued'] === null) { return false; } if ($this->container['dateExpired'] === null) { 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 setAvailability($availability) { $allowedValues = $this->getAvailabilityAllowableValues(); if (!in_array($availability, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'availability', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['availability'] = $availability; return $this; }
Sets availability @param string $availability To whom the contract is available @return $this
entailment
public function setSecurityStatus($securityStatus) { if (!is_null($securityStatus) && ($securityStatus > 10)) { throw new \InvalidArgumentException('invalid value for $securityStatus when calling GetCharactersCharacterIdOk., must be smaller than or equal to 10.'); } if (!is_null($securityStatus) && ($securityStatus < -10)) { throw new \InvalidArgumentException('invalid value for $securityStatus when calling GetCharactersCharacterIdOk., must be bigger than or equal to -10.'); } $this->container['securityStatus'] = $securityStatus; return $this; }
Sets securityStatus @param float $securityStatus security_status number @return $this
entailment
public function setObserverType($observerType) { $allowedValues = $this->getObserverTypeAllowableValues(); if (!in_array($observerType, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'observerType', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['observerType'] = $observerType; return $this; }
Sets observerType @param string $observerType The category of the observing entity @return $this
entailment
public function getCharactersCharacterId($characterId, $datasource = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterId Get character's public information @param int $characterId An EVE character 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdOk
entailment
public function getCharactersCharacterIdChatChannels($characterId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdChatChannelsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdChatChannels Get chat channels @param int $characterId ID for a character (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]
entailment
public function getCharactersCharacterIdCorporationhistory($characterId, $datasource = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdCorporationhistoryWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdCorporationhistory Get corporation history @param int $characterId An EVE character 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]
entailment
public function getCharactersCharacterIdMedals($characterId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdMedalsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdMedals Get medals @param int $characterId ID for a character (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]
entailment
public function getCharactersCharacterIdStandings($characterId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdStandingsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdStandings Get standings @param int $characterId ID for a character (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]
entailment
public function getCharactersNames($characterIds, $datasource = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersNamesWithHttpInfo($characterIds, $datasource, $userAgent, $xUserAgent); return $response; }
Operation getCharactersNames Get character names @param int[] $characterIds A comma separated list of character 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 @return \nullx27\ESI\Models\GetCharactersNames200Ok[]
entailment
public function postCharactersCharacterIdCspa($characterId, $characters, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->postCharactersCharacterIdCspaWithHttpInfo($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation postCharactersCharacterIdCspa Calculate a CSPA charge cost @param int $characterId An EVE character ID (required) @param \nullx27\ESI\Models\PostCharactersCharacterIdCspaCharacters $characters The target characters to calculate the charge for (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\PostCharactersCharacterIdCspaCreated
entailment
public function deleteCharactersCharacterIdMailMailId($characterId, $mailId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->deleteCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation deleteCharactersCharacterIdMailMailId Delete a mail @param int $characterId An EVE character ID (required) @param int $mailId An EVE mail 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 preferred over 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 @return void
entailment
public function getCharactersCharacterIdMail($characterId, $datasource = null, $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdMailWithHttpInfo($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdMail Return mail headers @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int[] $labels Fetch only mails that match one or more of the given labels (optional) @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]
entailment
public function getCharactersCharacterIdMailLists($characterId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdMailListsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdMailLists Return mailing list subscriptions @param int $characterId An EVE character 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 preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]
entailment
public function getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdMailMailId Return a mail @param int $characterId An EVE character ID (required) @param int $mailId An EVE mail 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 preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk
entailment
public function postCharactersCharacterIdMailLabels($characterId, $datasource = null, $label = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->postCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); return $response; }
Operation postCharactersCharacterIdMailLabels Create a mail label @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param \nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) @param string $token Access token to use, if preferred over 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 @return int
entailment
public function deleteCharactersCharacterIdMailLabelsLabelId($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $this->deleteCharactersCharacterIdMailLabelsLabelIdWithHttpInfo($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); }
Operation deleteCharactersCharacterIdMailLabelsLabelId Delete a mail label @param int $characterId An EVE character ID (required) @param int $labelId An EVE label 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 deleteCharactersCharacterIdMailLabelsLabelIdAsync($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->deleteCharactersCharacterIdMailLabelsLabelIdAsyncWithHttpInfo($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation deleteCharactersCharacterIdMailLabelsLabelIdAsync Delete a mail label @param int $characterId An EVE character ID (required) @param int $labelId An EVE label 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 deleteCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->deleteCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation deleteCharactersCharacterIdMailMailIdAsync Delete a mail @param int $characterId An EVE character ID (required) @param int $mailId An EVE mail 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 getCharactersCharacterIdMailAsync($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdMailAsync Return mail headers @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int[] $labels Fetch only mails that match one or more of the given labels (optional) @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) @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 getCharactersCharacterIdMailLabels($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdMailLabels Get mail labels and unread counts @param int $characterId An EVE character 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\GetCharactersCharacterIdMailLabelsOk
entailment
public function getCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdMailLabelsAsync Get mail labels and unread counts @param int $characterId An EVE character 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 getCharactersCharacterIdMailListsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdMailListsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdMailListsAsync Return mailing list subscriptions @param int $characterId An EVE character 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 getCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdMailMailIdAsync Return a mail @param int $characterId An EVE character ID (required) @param int $mailId An EVE mail 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 postCharactersCharacterIdMail($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->postCharactersCharacterIdMailWithHttpInfo($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation postCharactersCharacterIdMail Send a new mail @param int $characterId An EVE character ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (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 postCharactersCharacterIdMailAsync($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->postCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation postCharactersCharacterIdMailAsync Send a new mail @param int $characterId An EVE character ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (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 postCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->postCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $label, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation postCharactersCharacterIdMailLabelsAsync Create a mail label @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param \nullx27\ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) @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 putCharactersCharacterIdMailMailId($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { $this->putCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); }
Operation putCharactersCharacterIdMailMailId Update metadata about a mail @param int $characterId An EVE character ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) @param int $mailId An EVE mail 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 putCharactersCharacterIdMailMailIdAsync($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->putCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation putCharactersCharacterIdMailMailIdAsync Update metadata about a mail @param int $characterId An EVE character ID (required) @param \nullx27\ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) @param int $mailId An EVE mail 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 __toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayErrors = true, $intCount = 0) { $strName = ($intCount == 0) ? $this->__name : $this->__name . "_" . $intCount; $strId = ($intCount == 0) ? $this->__id : $this->__id . "_" . $intCount; $blnError = ($submitted && ! $this->__validator->validate($intCount) && $blnDisplayErrors) ? true : false; if (! $blnSimpleLayout) { // *** We asume that all dynamic fields greater than 0 are never required. if ($this->__validator->getRequired() && $intCount == 0) { $this->setMeta("class", "vf__required"); } else { $this->setMeta("class", "vf__optional"); } // *** Set custom meta. if ($blnError) { $this->setMeta("class", "vf__error"); } if (! $blnLabel) { $this->setMeta("class", "vf__nolabel"); } // Call this right before __getMetaString(); $this->setConditionalMeta(); $strOutput = "<div{$this->__getMetaString()}>\n"; if ($blnError) { $strOutput .= "<p class=\"vf__error\">{$this->__validator->getError($intCount)}</p>"; } if ($blnLabel) { $strLabel = (! empty($this->__requiredstyle) && $this->__validator->getRequired()) ? sprintf($this->__requiredstyle, $this->__label) : $this->__label; if (! empty($this->__label)) { $strOutput .= "<label for=\"{$strId}\"{$this->__getLabelMetaString()}>{$strLabel}</label>\n"; } } } else { if ($blnError) { $this->setMeta("class", "vf__error"); } $this->setMeta("class", "vf__multifielditem"); // Call this right before __getMetaString(); $this->setConditionalMeta(); $strOutput = "<div{$this->__getMetaString()}\">\n"; } // *** Fixing an unusual uploading bug. $intMaxFileSize = $this->convertToBytes(ini_get("upload_max_filesize")); $strOutput .= "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$intMaxFileSize}\" />"; $arrValues = []; $strValue = $this->__getValue($submitted, $intCount); if (!is_array($strValue)) { $strValue = htmlspecialchars($strValue, ENT_QUOTES); if (!empty($strValue)) { $arrValues = [$strValue]; } } else { foreach ($strValue as $value) { $value = htmlspecialchars($value, ENT_QUOTES); $arrValues[] = $value; } } //*** Render the file input. We don't set a value for it. $strOutput .= "<input type=\"file\" name=\"{$strName}[]\" id=\"{$strId}\"{$this->__getFieldMetaString()} />\n"; //*** Render sanitized values as hidden inputs. $intCount = 1; foreach ($arrValues as $strValue) { $strOutput .= "<input type=\"hidden\" name=\"{$strName}[]\" id=\"{$strId}-{$intCount}\" value=\"{$strValue}\" />\n"; $intCount++; } if (! empty($this->__tip)) { $strOutput .= "<small class=\"vf__tip\"{$this->__getTipMetaString()}>{$this->__tip}</small>\n"; } $strOutput .= "</div>\n"; return $strOutput; }
Generate HTML See {@link \ValidFormBuilder\Element::__toHtml()} @see \ValidFormBuilder\Element::__toHtml()
entailment
private function convertToBytes($strSize) { switch (strtolower(substr($strSize, - 1))) { case 'm': return (int) $strSize * 1048576; case 'k': return (int) $strSize * 1024; case 'g': return (int) $strSize * 1073741824; default: return $strSize; } }
Convert file size to bytes @param string $strSize File size to convert @return string
entailment
public function getCharactersCharacterIdOpportunitiesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdOpportunitiesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdOpportunitiesAsync Get a character's completed tasks @param int $characterId An EVE character 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 getOpportunitiesGroupsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getOpportunitiesGroupsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getOpportunitiesGroupsAsync Get opportunities groups @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 getOpportunitiesGroupsGroupId($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { list($response) = $this->getOpportunitiesGroupsGroupIdWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent); return $response; }
Operation getOpportunitiesGroupsGroupId Get opportunities group @param int $groupId ID of an opportunities group (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 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\GetOpportunitiesGroupsGroupIdOk
entailment
public function getOpportunitiesGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getOpportunitiesGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getOpportunitiesGroupsGroupIdAsync Get opportunities group @param int $groupId ID of an opportunities group (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 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 getOpportunitiesTasks($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { list($response) = $this->getOpportunitiesTasksWithHttpInfo($datasource, $userAgent, $xUserAgent); return $response; }
Operation getOpportunitiesTasks Get opportunities tasks @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 getOpportunitiesTasksAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getOpportunitiesTasksAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getOpportunitiesTasksAsync Get opportunities tasks @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 getOpportunitiesTasksTaskIdAsync($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getOpportunitiesTasksTaskIdAsyncWithHttpInfo($taskId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getOpportunitiesTasksTaskIdAsync Get opportunities task @param int $taskId ID of an opportunities task (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 registerCustomTypes(): void { // already registered if (\Doctrine\DBAL\Types\Type::hasType('neuralyzer_enum')) { return; } // Else register // Manage specific types such as enum \Doctrine\DBAL\Types\Type::addType( 'neuralyzer_enum', 'Edyan\Neuralyzer\Doctrine\Type\Enum' ); $platform = $this->conn->getDatabasePlatform(); $platform->registerDoctrineTypeMapping('enum', 'neuralyzer_enum'); $platform->registerDoctrineTypeMapping('bit', 'boolean'); }
Add a custom enum type @return void @throws \Doctrine\DBAL\DBALException
entailment
public function loadData(string $table, string $fname, array $fields, string $mode): string { $sql ="LOAD DATA LOCAL INFILE '{$fname}' REPLACE INTO TABLE {$table} FIELDS TERMINATED BY '|' ENCLOSED BY '\"' LINES TERMINATED BY '" . PHP_EOL . "' (`" . implode("`, `", $fields) . "`)"; // Run the query if asked if ($this->pretend === false) { $this->conn->query($sql); } return $sql; }
{@inheritdoc}
entailment
public function isSubmitted($blnForce = false) { $blnReturn = false; if (ValidForm::get("vf__dispatch") == $this->__name) { // *** Try to retrieve the uniqueId from a REQUEST value. $strUniqueId = ValidWizard::get("vf__uniqueid"); if (! empty($strUniqueId)) { $this->__setUniqueId($strUniqueId); } $blnReturn = true; } elseif ($blnForce) { $blnReturn = true; } return $blnReturn; }
Check if the wizard is submitted See {@link \ValidFormBuilder\ValidForm::isSubmitted()} @param boolean $blnForce Fake isSubmitted to true to force field values. @return bool
entailment
public function addMultiField($label = null, $meta = array()) { $objField = new MultiField($label, $meta); $objField->setRequiredStyle($this->__requiredstyle); // *** Page already defined? $objPage = $this->__elements->getLast("ValidFormBuilder\\Page"); if ($this->__elements->count() == 0 || ! is_object($objPage)) { $objPage = $this->addPage(); } // *** Fieldset already defined? $objFieldset = $objPage->getElements()->getLast("ValidFormBuilder\\Fieldset"); if ($this->__elements->count() == 0 || ! is_object($objFieldset)) { $objFieldset = $this->addFieldset(); } $objField->setMeta("parent", $objFieldset, true); // *** Add field to the fieldset. $objFieldset->addField($objField); return $objField; }
Add multifield See {@link \ValidFormBuilder\ValidForm::addMultiField()} @see \ValidFormBuilder\ValidForm::addMultiField() @param string $label @param array $meta The meta array @return \ValidFormBuilder\MultiField
entailment
public function getPage($intPage = 1) { $intPage--; // Convert page no. to index no. if ($intPage < 0) { $intPage = 0; } $this->__elements->seek($intPage); $objReturn = $this->__elements->current(); if ($objReturn === false || get_class($objReturn) !== "ValidFormBuilder\\Page") { $objReturn = null; } return $objReturn; }
Get a page from the collection based on it's zero-based position in the elements collection @param Integer $intPage The page number, starting at 1. @return \ValidFormBuilder\Page Page element, if found.
entailment
public function addPage($id = "", $header = "", $meta = array()) { $objPage = new Page($id, $header, $meta); $this->__elements->addObject($objPage); if ($this->__elements->count() == 1) { // Add unique id field. $this->addHiddenField("vf__uniqueid", ValidForm::VFORM_STRING, array( "default" => $this->getUniqueId() )); } $this->__pagecount ++; return $objPage; }
Add a page to the wizard See {@link \ValidFormBuilder\Page} @param string $id Page ID @param string $header Page title @param array $meta Meta array @return \ValidFormBuilder\Page
entailment
public function addField($name, $label, $type, $validationRules = array(), $errorHandlers = array(), $meta = array(), $blnJustRender = false) { $objField = parent::renderField($name, $label, $type, $validationRules, $errorHandlers, $meta); // *** Fieldset already defined? if ($this->__elements->count() == 0 && ! $blnJustRender) { $objPage = $this->addPage(); } $objField->setRequiredStyle($this->__requiredstyle); if (! $blnJustRender) { $objPage = $this->__elements->getLast(); $objPage->addField($objField); } return $objField; }
Add a field See {@link \ValidFormBuilder\ValidForm::addField()} @see \ValidFormBuilder\ValidForm::addField() @api @param string $name The element's name @param string $label The element's label @param integer $type The element's validation type @param array $validationRules Optional.Custom validation rules array @param array $errorHandlers Custom error handling array @param array $meta Optional. Meta data array @param boolean $blnJustRender When true, the element is not added to the internal elements collection. `addField()` with `$blnJustRender` set to true is exactly the same as calling `ValidForm::renderField()` @return \ValidFormBuilder\Element Returns null when no valid type is defined
entailment
public function addFieldset($header = null, $noteHeader = null, $noteBody = null, $meta = array()) { $objFieldSet = new Fieldset($header, $noteHeader, $noteBody, $meta); $objPage = $this->__elements->getLast("ValidFormBuilder\\Page"); if (! is_object($objPage)) { $objPage = $this->addPage(); } $objPage->addField($objFieldSet); return $objFieldSet; }
Add a fieldset See {@link \ValidFormBuilder\ValidForm::addFieldset()} @see \ValidFormBuilder\ValidForm::addFieldset() @param string $header The header for this fieldset @param string $noteHeader An optional header for the 'note' block on the side of this fieldset @param string $noteBody The optional body for the 'note block on the side of this fieldset @param array $meta The meta array @return \ValidFormBuilder\Fieldset
entailment
public function valuesAsHtml($hideEmpty = false, $collection = null) { $strTable = "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"validform\">\n"; $strTableOutput = ""; $collection = (!is_null($collection)) ? $collection : $this->__elements; foreach ($collection as $objPage) { if (get_class($objPage) === "ValidFormBuilder\\Page") { // If this page was rendered invisible due to conditions, // don't show it on the valuesAsHtml overview either. if (!$this->elementShouldDisplay($objPage)) { continue; // Continue to the next page. } // Passing 'true' will return the optional 'short header' if available. $strHeader = $objPage->getShortHeader(); $strTableOutput .= "<tr><td colspan=\"3\" class=\"vf__page-header\">{$strHeader}</td></tr>"; foreach ($objPage->getFields() as $objFieldset) { $strSet = ""; $strTableOutput .= parent::fieldsetAsHtml($objFieldset, $strSet, $hideEmpty); } } } if (! empty($strTableOutput)) { return $strTable . $strTableOutput . "</table>"; } else { if (! empty($this->__novaluesmessage)) { return $strTable . "<tr><td colspan=\"3\">{$this->__novaluesmessage}</td></tr></table>"; } else { return ""; } } }
Generate valuesAsHtml overview See {@link \ValidFormBuilder\ValidForm::valuesAsHtml()} @see \ValidFormBuilder\ValidForm::valuesAsHtml() @param boolean $hideEmpty Set to true to hide empty field values from the overview. Defaults to false. @param string $collection Optional - advanced usage only; a custom Collection of elements to parse @return string Generated `table` with `label: value` pairs
entailment
public static function unserialize($strSerialized, $strUniqueId = "") { $objReturn = parent::unserialize($strSerialized); if (get_class($objReturn) == "ValidFormBuilder\\ValidWizard" && ! empty($strUniqueId)) { $objReturn->__setUniqueId($strUniqueId); } return $objReturn; }
Unserialize a previously serialized ValidWizard object @param string $strSerialized Serialized ValidWizard object @param string $strUniqueId Use this to overwrite the deserialized wizard's unique ID @return \ValidFormBuilder\ValidForm A ValidForm instance (this can either be a ValidForm or ValidWizard object)
entailment
protected function __toJs($strCustomJs = "", $arrInitArguments = array(), $blnRawJs = false) { // Add extra arguments to javascript initialization method. if ($this->__currentpage > 1) { $arrInitArguments["initialPage"] = $this->__currentpage; } $arrInitArguments["confirmPage"] = $this->__hasconfirmpage; $strJs = ""; $strJs .= "objForm.setLabel('next', '" . $this->__nextlabel . "');\n\t"; $strJs .= "objForm.setLabel('previous', '" . $this->__previouslabel . "');\n\t"; if (!empty($this->__nextclass)) { $strJs .= "objForm.setClass('next', '" . $this->__nextclass . "');\n\t"; } if (!empty($this->__previousclass)) { $strJs .= "objForm.setClass('previous', '" . $this->__previousclass . "');\n\t"; } if (strlen($strCustomJs) > 0) { $strJs .= $strCustomJs; } return parent::__toJs($strJs, $arrInitArguments, $blnRawJs); }
Generate Javascript code See {@link \ValidFormBuilder\ValidForm::toJs()} @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 string $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
entailment
public function isValidUntil($strPageId) { $blnReturn = true; foreach ($this->__elements as $objPage) { if (! $blnReturn || $objPage->getId() == $strPageId) { break; } if (! $objPage->isValid()) { $blnReturn = false; } } return $blnReturn; }
Validate all form fields EXCLUDING the fields in the given page object and beyond. This is useful when partially validating the wizard @param string $strPageId The page object id @return boolean True if all fields validate, false if not.
entailment
public function getInvalidFieldsUntil($strPageId) { $arrReturn = array(); foreach ($this->__elements as $objPage) { if ($objPage->getId() == $strPageId) { break; } if ($objPage->hasFields()) { $objFieldsets = $objPage->getFields(); foreach ($objFieldsets as $objFieldset) { foreach ($objFieldset->getFields() as $objField) { if (is_object($objField)) { if ($objField->hasFields()) { foreach ($objField->getFields() as $objSubField) { if (is_object($objSubField)) { if ($objSubField->hasFields()) { foreach ($objSubField->getFields() as $objSubSubField) { if (is_object($objSubSubField)) { if (! $objSubSubField->isValid()) { $arrTemp = array( $objSubSubField->getName() => $objSubSubField->getValidator()->getError() ); array_push($arrReturn, $arrTemp); } } } } else { if (! $objSubField->isValid()) { $arrTemp = array( $objSubField->getName() => $objSubField->getValidator()->getError() ); array_push($arrReturn, $arrTemp); } } } } } else { if (! $objField->isValid()) { $arrTemp = array( $objField->getName() => $objField->getValidator()->getError() ); array_push($arrReturn, $arrTemp); } } } } } } } return $arrReturn; }
Validate all form fields EXCLUDING the fields in the given page object and beyond. @param string $strPageId @return array Array of invalid fields
entailment
public function getFields($blnIncludeMultiFields = false) { $objFields = new Collection(); foreach ($this->__elements as $objPage) { if ($objPage->hasFields()) { foreach ($objPage->getFields() as $objFieldset) { if ($objFieldset->hasFields()) { foreach ($objFieldset->getFields() as $objField) { if (is_object($objField)) { if ($objField->hasFields()) { // Also add the multifield to the resulting collection, if $blnIncludeMultiFields is true. if (get_class($objField) == "ValidFormBuilder\\MultiField" && $blnIncludeMultiFields) { $objFields->addObject($objField); } foreach ($objField->getFields() as $objSubField) { if (is_object($objSubField)) { if ($objSubField->hasFields()) { // Also add the multifield to the resulting collection, if $blnIncludeMultiFields is true. if (get_class($objField) == "ValidFormBuilder\\MultiField" && $blnIncludeMultiFields) { $objFields->addObject($objField); } foreach ($objSubField->getFields() as $objSubSubField) { if (is_object($objSubSubField)) { $objFields->addObject($objSubSubField); } } } else { $objFields->addObject($objSubField); } } } } else { $objFields->addObject($objField); } } } } else { $objFields->addObject($objFieldset); } } } else { $objFields->addObject($objPage); } } return $objFields; }
getFields creates a flat collection of all form fields. @param boolean $blnIncludeMultiFields Set this to true if you want to include MultiFields in the collection @return Collection The collection of fields.
entailment
public function isValid($strPageId = null) { if (! is_null($strPageId)) { return $this->isValidUntil($strPageId); } else { return parent::isValid(); } }
See {@link \ValidFormBuilder\ValidForm::isValid()} @see \ValidFormBuilder\ValidForm::isValid() @param null $strPageId Optional. If page ID is given, only that page will be validated. @return bool True if successful, false if one of the fields contains an error.
entailment
public function query(string $sql): ?array { $conn = $this->dbUtils->getConn(); $sql = trim($sql); try { $res = $conn->query($sql); if (strpos($sql, 'SELECT') === 0) { return $res->fetchAll(); } return null; } catch (\Exception $e) { throw new NeuralyzerException($e->getMessage()); } }
@param string $sql @throws NeuralyzerException @return array
entailment
public function create(TaskInterface $task, \DateTime $scheduleTime) { return new TaskExecution($task, $task->getHandlerClass(), $scheduleTime, $task->getWorkload()); }
{@inheritdoc}
entailment
public function save(TaskExecutionInterface $execution) { if ($this->taskExecutionCollection->contains($execution)) { return $this; } $this->taskExecutionCollection->add($execution); return $this; }
{@inheritdoc}
entailment
public function findPending(TaskInterface $task) { $filtered = $this->taskExecutionCollection->filter( function (TaskExecutionInterface $execution) use ($task) { return $execution->getTask()->getUuid() === $task->getUuid() && in_array($execution->getStatus(), [TaskStatus::PLANNED, TaskStatus::RUNNING]); } ); if ($filtered->count() === 0) { return; } return $filtered->first(); }
{@inheritdoc}
entailment
public function findByUuid($uuid) { $filtered = $this->taskExecutionCollection->filter( function (TaskExecutionInterface $execution) use ($uuid) { return $execution->getUuid() === $uuid; } ); if ($filtered->count() === 0) { return; } return $filtered->first(); }
{@inheritdoc}
entailment
public function findByTaskUuid($taskUuid) { return array_values( $this->taskExecutionCollection->filter( function (TaskExecutionInterface $execution) use ($taskUuid) { return $execution->getTask()->getUuid() === $taskUuid; } )->toArray() ); }
{@inheritdoc}
entailment
public function findAll($page = 1, $pageSize = null) { return array_values($this->taskExecutionCollection->slice(($page - 1) * $pageSize, $pageSize)); }
{@inheritdoc}
entailment
public function findNextScheduled(\DateTime $dateTime = null, array $skippedExecutions = []) { $dateTime = $dateTime ?: new \DateTime(); $result = $this->taskExecutionCollection->filter( function (TaskExecutionInterface $execution) use ($dateTime, $skippedExecutions) { return $execution->getStatus() === TaskStatus::PLANNED && $execution->getScheduleTime() < $dateTime && !in_array($execution->getUuid(), $skippedExecutions); } )->first(); return $result ?: null; }
{@inheritdoc}
entailment
protected function hasQueryBuilderMethod(string $name) : bool { if (method_exists($this->queryBuilder, $name)) { return true; } if (method_exists($this->queryBuilder, 'hasMacro') && $this->queryBuilder->hasMacro($name)) { return true; } return false; }
Does the QueryBuilder we're using have a method with the provided name? This will also check any functionality added via a macro. @param string $name The method name @return boolean
entailment
public function getCharactersCharacterIdKillmailsRecent($characterId, $datasource = null, $maxCount = null, $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdKillmailsRecentWithHttpInfo($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdKillmailsRecent List kills and losses @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $maxCount How many killmails to return at maximum (optional, default to 50) @param int $maxKillId Only return killmails with ID smaller than this. (optional) @param string $token Access token to use, if preferred over 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 @return \nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]
entailment
public function getOwnerTypeAllowableValues() { return [ self::OWNER_TYPE_EVE_SERVER, self::OWNER_TYPE_CORPORATION, self::OWNER_TYPE_FACTION, self::OWNER_TYPE_CHARACTER, self::OWNER_TYPE_ALLIANCE, ]; }
Gets allowable values of the enum @return string[]
entailment
public function setOwnerType($ownerType) { $allowedValues = $this->getOwnerTypeAllowableValues(); if (!in_array($ownerType, $allowedValues)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'ownerType', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['ownerType'] = $ownerType; return $this; }
Sets ownerType @param string $ownerType owner_type string @return $this
entailment
public static function register() { $postType = static::getPostType(); $config = static::getPostTypeConfig(); if (empty($postType) || $postType === 'post') { throw new PostTypeRegistrationException('Post type not set'); } if (empty($config)) { throw new PostTypeRegistrationException('Config not set'); } register_post_type($postType, $config); }
Register this PostType with WordPress @return void
entailment
public static function all($perPage = -1, $orderby = 'menu_order', $order = 'ASC') { $order = strtoupper($order); $args = [ 'posts_per_page' => $perPage, 'orderby' => $orderby, 'order' => $order, ]; return static::query($args); }
Get all posts of this type @param integer $perPage The number of items to return (defaults to all) @return Illuminate\Support\Collection
entailment
public static function query($args = null) { $args = is_array($args) ? $args : []; // Set the correct post type $args = array_merge($args, ['post_type' => static::getPostType()]); if (!isset($args['post_status'])) { $args['post_status'] = 'publish'; } return static::posts($args); }
Convenience function that takes a standard set of WP_Query arguments but mixes it with arguments that mean we're selecting the right post type @param array $args standard WP_Query array @return Illuminate\Support\Collection
entailment
public function getStateAllowableValues() { return [ self::STATE_OFFLINE, self::STATE_ONLINE, self::STATE_ONLINING, self::STATE_REINFORCED, self::STATE_UNANCHORING, ]; }
Gets allowable values of the enum @return string[]
entailment
public static function staticAdminLogon($route = null) { if (file_exists(CONFIG_DIR . DIRECTORY_SEPARATOR . 'admins.json')) { if ('login' !== Config::getParam('admin.login')) { return AdminServices::getInstance()->setAdminHeaders(); } else { $form = new LoginForm(); $form->setData(array("route" => $route)); $form->build(); $tpl = Template::getInstance(); $tpl->setPublicZone(true); return $tpl->render("login.html.twig", array( 'form' => $form, )); } } else { return UserController::showAdminManager(); } }
Método estático de login de administrador @param string $route @return string HTML @throws \PSFS\base\exception\FormException
entailment
public function listInvalidProperties() { $invalidProperties = []; if (!is_null($this->container['division']) && ($this->container['division'] > 7)) { $invalidProperties[] = "invalid value for 'division', must be smaller than or equal to 7."; } if (!is_null($this->container['division']) && ($this->container['division'] < 1)) { $invalidProperties[] = "invalid value for 'division', must be bigger than or equal to 1."; } if (!is_null($this->container['name']) && (strlen($this->container['name']) > 50)) { $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; } return $invalidProperties; }
Show all the invalid properties with reasons. @return array invalid properties with reasons
entailment
public function setDivision($division) { if (!is_null($division) && ($division > 7)) { throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be smaller than or equal to 7.'); } if (!is_null($division) && ($division < 1)) { throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be bigger than or equal to 1.'); } $this->container['division'] = $division; return $this; }
Sets division @param int $division division integer @return $this
entailment
public function getCharactersCharacterIdWallet($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdWalletWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdWallet Get a character's wallet balance @param int $characterId An EVE character 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 double
entailment
public function getCharactersCharacterIdWalletAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdWalletAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdWalletAsync Get a character's wallet balance @param int $characterId An EVE character 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 getCharactersCharacterIdWalletJournal($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdWalletJournalWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdWalletJournal Get character wallet journal @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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\GetCharactersCharacterIdWalletJournal200Ok[]
entailment
public function getCharactersCharacterIdWalletJournalAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdWalletJournalAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdWalletJournalAsync Get character wallet journal @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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 getCharactersCharacterIdWalletTransactions($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCharactersCharacterIdWalletTransactionsWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCharactersCharacterIdWalletTransactions Get wallet transactions @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show transactions happened before the one referenced by this id (optional) @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\GetCharactersCharacterIdWalletTransactions200Ok[]
entailment
public function getCharactersCharacterIdWalletTransactionsAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCharactersCharacterIdWalletTransactionsAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCharactersCharacterIdWalletTransactionsAsync Get wallet transactions @param int $characterId An EVE character ID (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show transactions happened before the one referenced by this id (optional) @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 getCorporationsCorporationIdWallets($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdWalletsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdWallets Returns a corporation's wallet balance @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\GetCorporationsCorporationIdWallets200Ok[]
entailment
public function getCorporationsCorporationIdWalletsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdWalletsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdWalletsAsync Returns a corporation's wallet balance @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 getCorporationsCorporationIdWalletsDivisionJournal($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdWalletsDivisionJournalWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdWalletsDivisionJournal Get corporation wallet journal @param int $corporationId An EVE corporation ID (required) @param int $division Wallet key of the division to fetch journals from (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[]
entailment
public function getCorporationsCorporationIdWalletsDivisionJournalAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdWalletsDivisionJournalAsyncWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdWalletsDivisionJournalAsync Get corporation wallet journal @param int $corporationId An EVE corporation ID (required) @param int $division Wallet key of the division to fetch journals from (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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 getCorporationsCorporationIdWalletsDivisionTransactions($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { list($response) = $this->getCorporationsCorporationIdWalletsDivisionTransactionsWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); return $response; }
Operation getCorporationsCorporationIdWalletsDivisionTransactions Get corporation wallet transactions @param int $corporationId An EVE corporation ID (required) @param int $division Wallet key of the division to fetch journals from (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[]
entailment
public function getCorporationsCorporationIdWalletsDivisionTransactionsAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) { return $this->getCorporationsCorporationIdWalletsDivisionTransactionsAsyncWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) ->then( function ($response) { return $response[0]; } ); }
Operation getCorporationsCorporationIdWalletsDivisionTransactionsAsync Get corporation wallet transactions @param int $corporationId An EVE corporation ID (required) @param int $division Wallet key of the division to fetch journals from (required) @param string $datasource The server name you would like data from (optional, default to tranquility) @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) @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 runTasks() { foreach ($this->executionFinder->find() as $execution) { try { $this->run($execution); } catch (ExitException $exception) { return; } } }
{@inheritdoc}
entailment
private function run(TaskExecutionInterface $execution) { $start = microtime(true); $execution->setStartTime(new \DateTime()); $execution->setStatus(TaskStatus::RUNNING); $this->taskExecutionRepository->save($execution); try { $execution = $this->hasPassed($execution, $this->handle($execution)); } catch (ExitException $exception) { throw $exception; } catch (\Exception $exception) { $execution = $this->hasFailed($execution, $exception); } finally { $this->finalize($execution, $start); } }
Run execution with given handler. @param TaskExecutionInterface $execution @throws ExitException
entailment
private function handle(TaskExecutionInterface $execution) { $this->eventDispatcher->dispatch( Events::TASK_BEFORE, new TaskExecutionEvent($execution->getTask(), $execution) ); try { return $this->executor->execute($execution); } catch (RetryException $exception) { // this find is necessary because the storage could be // invalid (clear in doctrine) after handling an execution. $execution = $this->taskExecutionRepository->findByUuid($execution->getUuid()); if ($execution->getAttempts() === $exception->getMaximumAttempts()) { throw $exception->getPrevious(); } $execution->reset(); $execution->incrementAttempts(); $this->eventDispatcher->dispatch( Events::TASK_RETRIED, new TaskExecutionEvent($execution->getTask(), $execution) ); $this->taskExecutionRepository->save($execution); throw new ExitException(); } finally { $this->eventDispatcher->dispatch( Events::TASK_AFTER, new TaskExecutionEvent($execution->getTask(), $execution) ); } }
Handle given execution and fire before and after events. @param TaskExecutionInterface $execution @return \Serializable|string @throws \Exception
entailment
private function hasPassed(TaskExecutionInterface $execution, $result) { // this find is necessary because the storage could be // invalid (clear in doctrine) after handling an execution. $execution = $this->taskExecutionRepository->findByUuid($execution->getUuid()); $execution->setStatus(TaskStatus::COMPLETED); $execution->setResult($result); $this->eventDispatcher->dispatch( Events::TASK_PASSED, new TaskExecutionEvent($execution->getTask(), $execution) ); return $execution; }
The given task passed the run. @param TaskExecutionInterface $execution @param mixed $result @return TaskExecutionInterface
entailment