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,
s... | 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... | 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 (... | 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 (($reinfo... | 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 ... | 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);
... | 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 $toke... | entailment |
public function putCharactersCharacterIdCalendarEventId($characterId, $eventId, $response, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->putCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $response, $datasource, $token, $userAge... | 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, ov... | 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::S... | 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 n... | 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;
}
i... | 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 '... | 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... | 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 '... | 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... | 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 $us... | 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)... | 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 Clien... | 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... | 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)
@par... | 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 $re... | 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 li... | entailment |
public function deleteCharactersCharacterIdMailMailId($characterId, $mailId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->deleteCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent);
re... | 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... | 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, $x... | 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... | 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)
@pa... | 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 $... | 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 ov... | 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);
r... | 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 (opt... | 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 t... | entailment |
public function deleteCharactersCharacterIdMailLabelsLabelIdAsync($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->deleteCharactersCharacterIdMailLabelsLabelIdAsyncWithHttpInfo($characterId, $labelId, $datasource, $token, $userAgent, ... | 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 to... | entailment |
public function deleteCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->deleteCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent)
... | 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 u... | 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, $userA... | 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)
@p... | 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)
@... | entailment |
public function getCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | 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 (option... | entailment |
public function getCharactersCharacterIdMailListsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdMailListsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | 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 (optiona... | entailment |
public function getCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent)
... | 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 unab... | 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 $respo... | 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 tranquil... | entailment |
public function postCharactersCharacterIdMailAsync($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | 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 tra... | entailment |
public function postCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $label, $token, $userAgent, $xUserAgent)
... | 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 ... | 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 s... | entailment |
public function putCharactersCharacterIdMailMailIdAsync($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->putCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $contents, $mailId, $datasource, $token, $userAgent, ... | 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)
@par... | 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;
$blnErr... | 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;
... | 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(
... | 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 (opt... | 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 ove... | 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)
@par... | entailment |
public function getOpportunitiesGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getOpportunitiesGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent)
->then(
... | 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)... | 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-... | 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 ... | entailment |
public function getOpportunitiesTasksTaskIdAsync($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getOpportunitiesTasksTaskIdAsyncWithHttpInfo($taskId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
... | 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)
@par... | 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_e... | 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) . "`)";
// ... | {@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)) {
... | 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->__element... | 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) !== "... | 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_... | 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->__eleme... | 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
@pa... | 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 = $thi... | 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 'no... | 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 ... | 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 o... | entailment |
public static function unserialize($strSerialized, $strUniqueId = "")
{
$objReturn = parent::unserialize($strSerialized);
if (get_class($objReturn) == "ValidFormBuilder\\ValidWizard" && ! empty($strUniqueId)) {
$objReturn->__setUniqueId($strUniqueId);
}
return $objRetur... | 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["confir... | 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 bein... | entailment |
public function isValidUntil($strPageId)
{
$blnReturn = true;
foreach ($this->__elements as $objPage) {
if (! $blnReturn || $objPage->getId() == $strPageId) {
break;
}
if (! $objPage->isValid()) {
$blnReturn = false;
}... | 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()... | 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()) {
... | 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 (\E... | @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(), ... | {@inheritdoc} | entailment |
public function findByUuid($uuid)
{
$filtered = $this->taskExecutionCollection->filter(
function (TaskExecutionInterface $execution) use ($uuid) {
return $execution->getUuid() === $uuid;
}
);
if ($filtered->count() === 0) {
return;
... | {@inheritdoc} | entailment |
public function findByTaskUuid($taskUuid)
{
return array_values(
$this->taskExecutionCollection->filter(
function (TaskExecutionInterface $execution) use ($taskUuid) {
return $execution->getTask()->getUuid() === $taskUuid;
}
)->toAr... | {@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) {
r... | {@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... | 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)
@p... | 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'",
... | 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 ... | 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';
}
r... | 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 = ne... | 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->conta... | 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) && ... | 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... | entailment |
public function getCharactersCharacterIdWalletAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdWalletAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | 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)
@... | entailment |
public function getCharactersCharacterIdWalletJournal($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdWalletJournalWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAg... | 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 refe... | entailment |
public function getCharactersCharacterIdWalletJournalAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdWalletJournalAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAge... | 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... | entailment |
public function getCharactersCharacterIdWalletTransactions($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdWalletTransactionsWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent... | 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 t... | entailment |
public function getCharactersCharacterIdWalletTransactionsAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdWalletTransactionsAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent,... | 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... | entailment |
public function getCorporationsCorporationIdWallets($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsCorporationIdWalletsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent);
return $res... | 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 (o... | entailment |
public function getCorporationsCorporationIdWalletsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCorporationsCorporationIdWalletsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | 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 head... | entailment |
public function getCorporationsCorporationIdWalletsDivisionJournal($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsCorporationIdWalletsDivisionJournalWithHttpInfo($corporationId, $division... | 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, defa... | entailment |
public function getCorporationsCorporationIdWalletsDivisionJournalAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCorporationsCorporationIdWalletsDivisionJournalAsyncWithHttpInfo($corporationId, $division,... | 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,... | entailment |
public function getCorporationsCorporationIdWalletsDivisionTransactions($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsCorporationIdWalletsDivisionTransactionsWithHttpInfo($corporationId,... | 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 (opti... | entailment |
public function getCorporationsCorporationIdWalletsDivisionTransactionsAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCorporationsCorporationIdWalletsDivisionTransactionsAsyncWithHttpInfo($corporationId, ... | 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 ... | 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($execu... | 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 (RetryExcep... | 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->setS... | The given task passed the run.
@param TaskExecutionInterface $execution
@param mixed $result
@return TaskExecutionInterface | entailment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.