sentence1 stringlengths 52 3.87M | sentence2 stringlengths 1 47.2k | label stringclasses 1
value |
|---|---|---|
protected function getColsList(string $table): array
{
$schema = $this->conn->getSchemaManager();
$tableDetails = $schema->listTableDetails($table);
// No primary ? Exception !
if ($tableDetails->hasPrimaryKey() === false) {
throw new NeuralyzerConfigurationException("Can... | Get the cols lists from a connection + table
@param string $table
@return array
@throws NeuralyzerConfigurationException | entailment |
protected function getTablesList(): array
{
$schemaManager = $this->conn->getSchemaManager();
$tablesInDB = $schemaManager->listTables();
$tables = [];
foreach ($tablesInDB as $table) {
if ($this->tableIgnored($table->getName())) {
continue;
}... | Get the table lists from a connection
@return array | entailment |
protected function guessColsAnonType(string $table, array $cols, GuesserInterface $guesser): array
{
$mapping = [];
foreach ($cols as $props) {
$mapping[$props['name']] = $guesser->mapCol($table, $props['name'], $props['type'], $props['len']);
}
return $mapping;
} | Guess the cols with the guesser
@param string $table
@param array $cols
@param GuesserInterface $guesser
@return array | entailment |
protected function tableIgnored(string $table): bool
{
foreach ($this->ignoredTables as $ignoredTable) {
if (preg_match("/^$ignoredTable\$/", $table)) {
return true;
}
}
return false;
} | Check if that table has to be ignored
@param string $table
@return bool | entailment |
public function deleteCharactersCharacterIdFittingsFittingId($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
$this->deleteCharactersCharacterIdFittingsFittingIdWithHttpInfo($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent);... | Operation deleteCharactersCharacterIdFittingsFittingId
Delete fitting
@param int $characterId An EVE character ID (required)
@param int $fittingId ID for a fitting of this character (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $toke... | entailment |
public function deleteCharactersCharacterIdFittingsFittingIdAsync($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->deleteCharactersCharacterIdFittingsFittingIdAsyncWithHttpInfo($characterId, $fittingId, $datasource, $token, $userAge... | Operation deleteCharactersCharacterIdFittingsFittingIdAsync
Delete fitting
@param int $characterId An EVE character ID (required)
@param int $fittingId ID for a fitting of this character (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string ... | entailment |
public function getCharactersCharacterIdFittings($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
... | Operation getCharactersCharacterIdFittings
Get fittings
@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 $userAgen... | entailment |
public function getCharactersCharacterIdFittingsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdFittingsAsync
Get fittings
@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 $use... | entailment |
public function postCharactersCharacterIdFittings($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->postCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent);
... | Operation postCharactersCharacterIdFittings
Create fitting
@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\PostCharactersCharacterIdFittingsFitting $fitting Details ab... | entailment |
public function postCharactersCharacterIdFittingsAsync($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent)
... | Operation postCharactersCharacterIdFittingsAsync
Create fitting
@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\PostCharactersCharacterIdFittingsFitting $fitting Detai... | entailment |
public function configure(array $params): void
{
$dbHelperClass = DBHelper\DriverGuesser::getDBHelper($params['driver']);
// Set specific options
$params['driverOptions'] = $dbHelperClass::getDriverOptions();
$this->conn = DriverManager::getConnection($params, new DbalConfiguration(... | Set the connection (dependency)
@param array $params
@return void
@throws \Doctrine\DBAL\DBALException | entailment |
public function countResults(string $table): int
{
$queryBuilder = $this->conn->createQueryBuilder();
$rows = $queryBuilder->select('COUNT(1)')->from($table)->execute();
return (int) $rows->fetch(\Doctrine\DBAL\FetchMode::NUMERIC)[0];
} | Do a simple count for a table
@param string $table
@return int | entailment |
public function getPrimaryKey(string $table): string
{
$schema = $this->conn->getSchemaManager();
$tableDetails = $schema->listTableDetails($table);
if ($tableDetails->hasPrimaryKey() === false) {
throw new NeuralyzerException("Can't find a primary key for '{$table}'");
}... | Identify the primary key for a table
@param string $table
@return string
@throws NeuralyzerException | entailment |
public function getTableCols(string $table): array
{
$schema = $this->conn->getSchemaManager();
$tableCols = $schema->listTableColumns($table);
$cols = [];
foreach ($tableCols as $col) {
$cols[$col->getName()] = [
'length' => $col->getLength(),
... | Retrieve columns list for a table with type and length
@param string $table
@return array $cols | entailment |
public function getRawSQL(QueryBuilder $queryBuilder)
{
$sql = $queryBuilder->getSQL();
foreach ($queryBuilder->getParameters() as $parameter => $value) {
$sql = str_replace($parameter, "'$value'", $sql);
}
return $sql;
} | To debug, build the final SQL (can be approximate)
@param QueryBuilder $queryBuilder
@return string | entailment |
public function assertTableExists(string $table): void
{
if ($this->conn->getSchemaManager()->tablesExist([$table]) === false) {
throw new NeuralyzerException("Table $table does not exist");
}
} | Make sure a table exists
@param string $table [description]
@throws NeuralyzerException | entailment |
public function getCondition(string $field, array $fieldConf): string
{
$type = strtolower($fieldConf['type']);
$unsigned = $fieldConf['unsigned'];
$integerCast = $this->getIntegerCast($unsigned);
$condition = "(CASE $field WHEN NULL THEN NULL ELSE :$field END)";
$typeToCa... | Build the condition by casting the value if needed
@param string $field
@param array $fieldConf Various values about the field
@return string | entailment |
public function getEmptyValue(string $type)
{
$type = strtolower($type);
$typeToValue = [
'date' => '1970-01-01',
'datetime' => '1970-01-01 00:00:00',
'time' => '00:00:00',
'smallint' => 0,
'integer' => 0,
'bigint' => 0,
... | Gives an empty value according to the field (example : numeric = 0)
@param string $type
@return mixed | entailment |
private function getIntegerCast(bool $unsigned): string
{
$driver = $this->conn->getDriver();
if (strpos($driver->getName(), 'mysql')) {
return $unsigned === true ? 'UNSIGNED' : 'SIGNED';
}
return 'INTEGER';
} | Get the right CAST for an INTEGER
@param bool $unsigned
@return string | entailment |
public function getUniverseBloodlines($datasource = null, $language = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseBloodlinesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseBloodlines
Get bloodlines
@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)... | entailment |
public function getUniverseCategoriesCategoryId($categoryId, $datasource = null, $language = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseCategoriesCategoryIdWithHttpInfo($categoryId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseCategoriesCategoryId
Get item category information
@param int $categoryId An Eve item category ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@... | entailment |
public function getUniverseConstellations($datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseConstellationsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseConstellations
Get constellations
@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-Agen... | entailment |
public function getUniverseFactions($datasource = null, $language = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseFactionsWithHttpInfo($datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseFactions
Get factions
@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)
@pa... | entailment |
public function getUniverseGroups($datasource = null, $page = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseGroupsWithHttpInfo($datasource, $page, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseGroups
Get item groups
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page to query (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identi... | entailment |
public function getUniverseMoonsMoonId($moonId, $datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseMoonsMoonIdWithHttpInfo($moonId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseMoonsMoonId
Get moon information
@param int $moonId moon_id integer (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 Clien... | entailment |
public function getUniversePlanetsPlanetId($planetId, $datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniversePlanetsPlanetIdWithHttpInfo($planetId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniversePlanetsPlanetId
Get planet information
@param int $planetId planet_id integer (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 $xUserA... | entailment |
public function getUniverseRegions($datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseRegionsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseRegions
Get regions
@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)
@... | entailment |
public function getUniverseStationsStationId($stationId, $datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseStationsStationIdWithHttpInfo($stationId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseStationsStationId
Get station information
@param int $stationId station_id integer (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 $x... | entailment |
public function getUniverseStructures($datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseStructuresWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseStructures
List all public structures
@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 getUniverseSystemJumps($datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseSystemJumpsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseSystemJumps
Get system jumps
@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 (op... | entailment |
public function getUniverseSystemKills($datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseSystemKillsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseSystemKills
Get system kills
@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 (op... | entailment |
public function getUniverseTypes($datasource = null, $page = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseTypesWithHttpInfo($datasource, $page, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseTypes
Get types
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page to query (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, t... | entailment |
public function getUniverseTypesTypeId($typeId, $datasource = null, $language = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseTypesTypeIdWithHttpInfo($typeId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseTypesTypeId
Get type information
@param int $typeId An Eve item type ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Cl... | entailment |
public function postUniverseNames($ids, $datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->postUniverseNamesWithHttpInfo($ids, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation postUniverseNames
Get names and categories for a set of ID's
@param int[] $ids The ids to resolve (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 strin... | entailment |
public function first() : ?Post
{
$params = array_merge($this->getParameters(), [
'limit' => 1,
]);
$posts = Timber::get_posts($params, $this->postClass);
if (!is_array($posts)) {
return null;
}
return collect($posts)->first();
} | Get the first Post that matches the current query. If no Post matches then return `null`.
@return Rareloop\Lumberjack\Post|null | entailment |
public function getCharactersCharacterIdAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
... | Operation getCharactersCharacterIdAsync
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... | entailment |
public function getCharactersCharacterIdAgentsResearch($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdAgentsResearchWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $r... | Operation getCharactersCharacterIdAgentsResearch
Get agents research
@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 str... | entailment |
public function getCharactersCharacterIdAgentsResearchAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdAgentsResearchAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(... | Operation getCharactersCharacterIdAgentsResearchAsync
Get agents research
@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 getCharactersCharacterIdBlueprints($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdBlueprintsWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent);
... | Operation getCharactersCharacterIdBlueprints
Get blueprints
@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 $page Which page of results to return (optional, default to 1)
@param string $token Ac... | entailment |
public function getCharactersCharacterIdBlueprintsAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdBlueprintsAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent)
... | Operation getCharactersCharacterIdBlueprintsAsync
Get blueprints
@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 $page Which page of results to return (optional, default to 1)
@param string $tok... | entailment |
public function getCharactersCharacterIdChatChannelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdChatChannelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdChatChannelsAsync
Get chat channels
@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 st... | entailment |
public function getCharactersCharacterIdCorporationhistoryAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdCorporationhistoryAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdCorporationhistoryAsync
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 (o... | entailment |
public function getCharactersCharacterIdFatigue($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdFatigueWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdFatigue
Get jump fatigue
@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 $userA... | entailment |
public function getCharactersCharacterIdFatigueAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdFatigueAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdFatigueAsync
Get jump fatigue
@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 $... | entailment |
public function getCharactersCharacterIdMedalsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdMedalsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdMedalsAsync
Get medals
@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 $userAge... | entailment |
public function getCharactersCharacterIdNotifications($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdNotificationsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $res... | Operation getCharactersCharacterIdNotifications
Get character notifications
@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)
@par... | entailment |
public function getCharactersCharacterIdNotificationsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdNotificationsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdNotificationsAsync
Get character notifications
@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 getCharactersCharacterIdNotificationsContacts($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdNotificationsContactsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
... | Operation getCharactersCharacterIdNotificationsContacts
Get new contact notifications
@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 (opti... | entailment |
public function getCharactersCharacterIdNotificationsContactsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdNotificationsContactsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
... | Operation getCharactersCharacterIdNotificationsContactsAsync
Get new contact notifications
@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 ... | entailment |
public function getCharactersCharacterIdPortrait($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdPortraitWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdPortrait
Get character portraits
@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 getCharactersCharacterIdPortraitAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdPortraitAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent)
->then(
function ($respons... | Operation getCharactersCharacterIdPortraitAsync
Get character portraits
@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 getCharactersCharacterIdRoles($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdRolesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdRoles
Get character corporation roles
@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 getCharactersCharacterIdRolesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdRolesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
f... | Operation getCharactersCharacterIdRolesAsync
Get character corporation roles
@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)
@pa... | entailment |
public function getCharactersCharacterIdStandingsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdStandingsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdStandingsAsync
Get standings
@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 $u... | entailment |
public function getCharactersCharacterIdStats($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdStatsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdStats
Yearly aggregate stats
@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 $u... | entailment |
public function getCharactersCharacterIdStatsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdStatsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
f... | Operation getCharactersCharacterIdStatsAsync
Yearly aggregate stats
@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 stri... | entailment |
public function getCharactersCharacterIdTitles($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdTitlesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdTitles
Get character corporation titles
@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 getCharactersCharacterIdTitlesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdTitlesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdTitlesAsync
Get character corporation titles
@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 getCharactersNamesAsync($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersNamesAsyncWithHttpInfo($characterIds, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
r... | Operation getCharactersNamesAsync
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 (option... | entailment |
public function postCharactersAffiliation($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->postCharactersAffiliationWithHttpInfo($characters, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation postCharactersAffiliation
Character affiliation
@param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAg... | entailment |
public function postCharactersAffiliationAsync($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->postCharactersAffiliationAsyncWithHttpInfo($characters, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
... | Operation postCharactersAffiliationAsync
Character affiliation
@param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $u... | entailment |
public function postCharactersCharacterIdCspaAsync($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postCharactersCharacterIdCspaAsyncWithHttpInfo($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent)
... | Operation postCharactersCharacterIdCspaAsync
Calculate a CSPA charge cost
@param int $characterId An EVE character ID (required)
@param int[] $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... | entailment |
public function valid()
{
if ($this->container['orderId'] === null) {
return false;
}
if ($this->container['typeId'] === null) {
return false;
}
if ($this->container['regionId'] === null) {
return false;
}
if ($this->contai... | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | entailment |
public function setRange($range)
{
$allowedValues = $this->getRangeAllowableValues();
if (!in_array($range, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'range', must be one of '%s'",
implode("... | Sets range
@param string $range Valid order range, numbers are ranges in jumps
@return $this | entailment |
public function setWalletDivision($walletDivision)
{
if (($walletDivision > 7)) {
throw new \InvalidArgumentException('invalid value for $walletDivision when calling GetCorporationsCorporationIdOrders200Ok., must be smaller than or equal to 7.');
}
if (($walletDivision < 1)) {
... | Sets walletDivision
@param int $walletDivision Wallet division of which this order used
@return $this | entailment |
public function setTotalUnreadCount($totalUnreadCount)
{
if (!is_null($totalUnreadCount) && ($totalUnreadCount < 0)) {
throw new \InvalidArgumentException('invalid value for $totalUnreadCount when calling GetCharactersCharacterIdMailLabelsOk., must be bigger than or equal to 0.');
}
... | Sets totalUnreadCount
@param int $totalUnreadCount total_unread_count integer
@return $this | entailment |
protected function initOptions()
{
Html::addCssClass($this->options, 'uk-alert uk-alert-'.$this->type);
$this->options['uk-alert'] = true;
} | Initializes the widget options.
This method sets the default values for various options. | entailment |
public function getTypeAllowableValues()
{
return [
self::TYPE_ACCEPTED_ALLY,
self::TYPE_ACCEPTED_SURRENDER,
self::TYPE_ALL_ANCHORING_MSG,
self::TYPE_ALL_MAINTENANCE_BILL_MSG,
self::TYPE_ALL_STRUC_INVULNERABLE_MSG,
self::TYPE_ALL_STRUCT... | Gets allowable values of the enum
@return string[] | entailment |
public function getSenderTypeAllowableValues()
{
return [
self::SENDER_TYPE_CHARACTER,
self::SENDER_TYPE_CORPORATION,
self::SENDER_TYPE_ALLIANCE,
self::SENDER_TYPE_FACTION,
self::SENDER_TYPE_OTHER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function setSenderType($senderType)
{
$allowedValues = $this->getSenderTypeAllowableValues();
if (!in_array($senderType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'senderType', must be one of '%s'",
... | Sets senderType
@param string $senderType sender_type string
@return $this | entailment |
public function setAccessorType($accessorType)
{
$allowedValues = $this->getAccessorTypeAllowableValues();
if (!in_array($accessorType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'accessorType', must be one of '... | Sets accessorType
@param string $accessorType accessor_type string
@return $this | entailment |
public function getCharactersCharacterIdOrders($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdOrdersWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdOrders
List orders from a character
@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 st... | entailment |
public function getCharactersCharacterIdOrdersAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdOrdersAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
... | Operation getCharactersCharacterIdOrdersAsync
List orders from a character
@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)
@para... | entailment |
public function getCorporationsCorporationIdOrders($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsCorporationIdOrdersWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent);
... | Operation getCorporationsCorporationIdOrders
List orders from a corporation
@param int $corporationId An EVE corporation ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1)
@par... | entailment |
public function getCorporationsCorporationIdOrdersAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCorporationsCorporationIdOrdersAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent)
... | Operation getCorporationsCorporationIdOrdersAsync
List orders from a corporation
@param int $corporationId An EVE corporation ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1)... | entailment |
public function getMarketsGroups($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getMarketsGroupsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getMarketsGroups
Get item 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 (option... | entailment |
public function getMarketsGroupsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsGroupsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
... | Operation getMarketsGroupsAsync
Get item 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 (o... | entailment |
public function getMarketsGroupsMarketGroupIdAsync($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsGroupsMarketGroupIdAsyncWithHttpInfo($marketGroupId, $datasource, $language, $userAgent, $xUserAgent)
->then(
... | Operation getMarketsGroupsMarketGroupIdAsync
Get item group information
@param int $marketGroupId An Eve item group ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us... | entailment |
public function getMarketsPrices($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getMarketsPricesWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getMarketsPrices
List market prices
@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 (opt... | entailment |
public function getMarketsPricesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsPricesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
... | Operation getMarketsPricesAsync
List market prices
@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... | entailment |
public function getMarketsRegionIdHistoryAsync($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsRegionIdHistoryAsyncWithHttpInfo($regionId, $typeId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response)... | Operation getMarketsRegionIdHistoryAsync
List historical market statistics in a region
@param int $regionId Return statistics in this region (required)
@param int $typeId Return statistics for this type (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)... | entailment |
public function getMarketsRegionIdOrdersAsync($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsRegionIdOrdersAsyncWithHttpInfo($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent)
... | Operation getMarketsRegionIdOrdersAsync
List orders in a region
@param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required)
@param int $regionId Return orders in this region (required)
@param string $datasource T... | entailment |
public function getMarketsRegionIdTypes($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getMarketsRegionIdTypesWithHttpInfo($regionId, $datasource, $page, $userAgent, $xUserAgent);
return $response;
} | Operation getMarketsRegionIdTypes
List type IDs relevant to a market
@param int $regionId Return statistics in this region (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1)
@para... | entailment |
public function getMarketsRegionIdTypesAsync($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsRegionIdTypesAsyncWithHttpInfo($regionId, $datasource, $page, $userAgent, $xUserAgent)
->then(
function ($response) {... | Operation getMarketsRegionIdTypesAsync
List type IDs relevant to a market
@param int $regionId Return statistics in this region (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1)
... | entailment |
public function getMarketsStructuresStructureId($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getMarketsStructuresStructureIdWithHttpInfo($structureId, $datasource, $page, $token, $userAgent, $xUserAgent);
ret... | Operation getMarketsStructuresStructureId
List orders in a structure
@param int $structureId Return orders in this structure (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1)
@pa... | entailment |
public function getMarketsStructuresStructureIdAsync($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getMarketsStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource, $page, $token, $userAgent, $xUserAgent)
-... | Operation getMarketsStructuresStructureIdAsync
List orders in a structure
@param int $structureId Return orders in this structure (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param int $page Which page of results to return (optional, default to 1... | entailment |
public function toHtml()
{
$this->setMeta("class", "vf__notes");
$this->setConditionalMeta();
$strOutput = "<div{$this->__getMetaString()}>\n";
if (! empty($this->__header)) {
$strOutput .= "<h4{$this->__getLabelMetaString()}>$this->__header</h4>\n";
}
... | Render the Note
@return string Rendered Note | entailment |
protected function createDriver($driver)
{
// We'll check to see if a creator method exists for the given driver. If not we
// will check for a custom driver creator, which allows developers to create
// drivers using their own customized driver creator Closure to create it.
if (isse... | Create a new driver instance.
@param string $driver
@return mixed
@throws \InvalidArgumentException | entailment |
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('config');
$rootNode
->children()
->scalarNode('guesser')
->info('Set the guesser class')
->defaultValue(Guesser::clas... | Validate the configuration
The config structure is something like :
## Root
entities:
## Can be repeated : the name of the table, is an array
accounts:
cols:
## Can be repeated : the name of the field, is an array
name:
method: words # Required: name of the method
params: [8] # Optional: parameters (an array)
@return... | entailment |
public function addComparison($varComparison)
{
$objComparison = null;
if (is_array($varComparison)) {
$varArguments = array_keys($varComparison);
if (isset($varComparison["subject"])) {
// Apparently, this is an associative array
$varArgument... | Add new comparison to Condition
@param Comparison|array $varComparison Comparison array or Comparison object
@throws \Exception if Reflection couldn't initialize new Comparison object
@throws \InvalidArgumentException if no valid Comparison data is supplied | entailment |
public function isMet($intDynamicPosition = 0)
{
$blnResult = false;
switch ($this->__comparisontype) {
default:
case ValidForm::VFORM_MATCH_ANY:
/* @var $objComparison Comparison */
foreach ($this->__comparisons as $objComparison) {
if ($objCompa... | Verify if the condition is met
@param int $intDynamicPosition Dynamic position of the field to verify
@return bool True if it is met, false if not
@throws \Exception | entailment |
public function jsonSerialize($intDynamicPosition = null)
{
if (get_class($this->__subject) == "ValidFormBuilder\\GroupField"
|| get_class($this->__subject) == "ValidFormBuilder\\Area"
) {
$identifier = $this->__subject->getId();
} elseif (get_class($this->__subject) ... | toJson method creates an array representation of the current condition object and all
of it's comparions.
In the future this class should extend the JsonSerializable interface
(http://php.net/manual/en/class.jsonserializable.php). Since this is only
supported in PHP >= 5.4, we now use our own implementation.
@param i... | entailment |
public function getRangeAllowableValues()
{
return [
self::RANGE_STATION,
self::RANGE_REGION,
self::RANGE_SOLARSYSTEM,
self::RANGE__1,
self::RANGE__2,
self::RANGE__3,
self::RANGE__4,
self::RANGE__5,
s... | Gets allowable values of the enum
@return string[] | entailment |
public function setRange($range)
{
$allowed_values = array('station', 'region', 'solarsystem', '1', '2', '3', '4', '5', '10', '20', '30', '40');
if ((!in_array($range, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'range', must be one of 'station', 'region',... | Sets range
@param string $range range string
@return $this | entailment |
public function input($type, $name, $value = null, $options = array())
{
if ( ! isset($options['name'])) $options['name'] = $name;
// We will get the appropriate value for the given field. We will look for the
// value in the session for the value in the old input data then we'll look
... | Create a form input field.
@param string $type
@param string $name
@param string $value
@param array $options
@return string | entailment |
public function selectRange($name, $begin, $end, $selected = null, $options = array())
{
$range = array_combine($range = range($begin, $end), $range);
return $this->select($name, $range, $selected, $options);
} | Create a select range field.
@param string $name
@param string $begin
@param string $end
@param string $selected
@param array $options
@return string | entailment |
protected function placeholderOption($display, $selected)
{
$selected = $this->getSelectedValue(null, $selected);
$options = compact('selected');
$options['value'] = '';
return '<option'.$this->html->attributes($options).'>'.e($display).'</option>';
} | Create a placeholder select element option.
@param $display
@param $selected
@return string | entailment |
public function checkbox($name, $value = 1, $checked = null, $options = array())
{
return $this->checkable('checkbox', $name, $value, $checked, $options);
} | Create a checkbox input field.
@param string $name
@param mixed $value
@param bool $checked
@param array $options
@return string | entailment |
protected function getRadioCheckedState($name, $value, $checked)
{
if ($this->missingOldAndModel($name)) return $checked;
return $this->getValueAttribute($name) == $value;
} | Get the check state for a radio input.
@param string $name
@param mixed $value
@param bool $checked
@return bool | entailment |
protected function getModelValueAttribute($name)
{
if (is_object($this->model))
{
return object_get($this->model, $this->transformKey($name));
}
elseif (is_array($this->model))
{
return array_get($this->model, $this->transformKey($name));
}
... | Get the model value that should be assigned to the field.
@param string $name
@return string | entailment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.