sentence1
stringlengths 52
3.87M
| sentence2
stringlengths 1
47.2k
| label
stringclasses 1
value |
---|---|---|
public function mergeConfigFrom($path, $key)
{
$existing = $this->app->get(Config::class)->get($key, []);
$this->app->get(Config::class)->set($key, array_merge(require $path, $existing));
} | Merge the config in the provided path into what already exists. Existing config takes
priority over what is found in $path.
@param string $path
@param string $key
@return void | entailment |
public function getUniverseBloodlinesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseBloodlinesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseBloodlinesAsync
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)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseCategories($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseCategoriesWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseCategories
Get item categories
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return int[] | entailment |
public function getUniverseCategoriesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseCategoriesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseCategoriesAsync
Get item categories
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseCategoriesCategoryIdAsync($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseCategoriesCategoryIdAsyncWithHttpInfo($categoryId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseCategoriesCategoryIdAsync
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)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseConstellationsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseConstellationsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseConstellationsAsync
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-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseConstellationsConstellationId($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseConstellationsConstellationIdWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseConstellationsConstellationId
Get constellation information
@param int $constellationId constellation_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk | entailment |
public function getUniverseConstellationsConstellationIdAsync($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseConstellationsConstellationIdAsyncWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseConstellationsConstellationIdAsync
Get constellation information
@param int $constellationId constellation_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseFactionsAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseFactionsAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseFactionsAsync
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)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseGraphics($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseGraphicsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseGraphics
Get graphics
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return int[] | entailment |
public function getUniverseGraphicsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseGraphicsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseGraphicsAsync
Get graphics
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseGraphicsGraphicId($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseGraphicsGraphicIdWithHttpInfo($graphicId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseGraphicsGraphicId
Get graphic information
@param int $graphicId graphic_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 Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk | entailment |
public function getUniverseGraphicsGraphicIdAsync($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseGraphicsGraphicIdAsyncWithHttpInfo($graphicId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseGraphicsGraphicIdAsync
Get graphic information
@param int $graphicId graphic_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 Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseGroupsAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseGroupsAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseGroupsAsync
Get item groups
@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 $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseGroupsGroupId($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseGroupsGroupIdWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseGroupsGroupId
Get item group information
@param int $groupId 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)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk | entailment |
public function getUniverseGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseGroupsGroupIdAsync
Get item group information
@param int $groupId 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)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseMoonsMoonIdAsync($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseMoonsMoonIdAsyncWithHttpInfo($moonId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseMoonsMoonIdAsync
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 Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniversePlanetsPlanetIdAsync($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniversePlanetsPlanetIdAsyncWithHttpInfo($planetId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniversePlanetsPlanetIdAsync
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 $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseRaces($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseRacesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseRaces
Get character races
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[] | entailment |
public function getUniverseRacesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseRacesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseRacesAsync
Get character races
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseRegionsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseRegionsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseRegionsAsync
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)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseRegionsRegionId($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseRegionsRegionIdWithHttpInfo($regionId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseRegionsRegionId
Get region information
@param int $regionId region_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk | entailment |
public function getUniverseRegionsRegionIdAsync($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseRegionsRegionIdAsyncWithHttpInfo($regionId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseRegionsRegionIdAsync
Get region information
@param int $regionId region_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseStargatesStargateId($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseStargatesStargateIdWithHttpInfo($stargateId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseStargatesStargateId
Get stargate information
@param int $stargateId stargate_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 Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk | entailment |
public function getUniverseStargatesStargateIdAsync($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseStargatesStargateIdAsyncWithHttpInfo($stargateId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseStargatesStargateIdAsync
Get stargate information
@param int $stargateId stargate_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 Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseStarsStarId($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseStarsStarIdWithHttpInfo($starId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseStarsStarId
Get star information
@param int $starId star_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 Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk | entailment |
public function getUniverseStarsStarIdAsync($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseStarsStarIdAsyncWithHttpInfo($starId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseStarsStarIdAsync
Get star information
@param int $starId star_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 Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseStationsStationIdAsync($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseStationsStationIdAsyncWithHttpInfo($stationId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseStationsStationIdAsync
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 $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseStructuresAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseStructuresAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseStructuresAsync
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-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseStructuresStructureId($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseStructuresStructureIdWithHttpInfo($structureId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseStructuresStructureId
Get structure information
@param int $structureId An Eve structure ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk | entailment |
public function getUniverseStructuresStructureIdAsync($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseStructuresStructureIdAsync
Get structure information
@param int $structureId An Eve structure ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseSystemJumpsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseSystemJumpsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseSystemJumpsAsync
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 (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseSystemKillsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseSystemKillsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseSystemKillsAsync
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 (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseSystems($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseSystemsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseSystems
Get solar systems
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return int[] | entailment |
public function getUniverseSystemsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseSystemsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseSystemsAsync
Get solar systems
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseSystemsSystemId($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getUniverseSystemsSystemIdWithHttpInfo($systemId, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getUniverseSystemsSystemId
Get solar system information
@param int $systemId system_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk | entailment |
public function getUniverseSystemsSystemIdAsync($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseSystemsSystemIdAsyncWithHttpInfo($systemId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseSystemsSystemIdAsync
Get solar system information
@param int $systemId system_id integer (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseTypesAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseTypesAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseTypesAsync
Get types
@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 $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getUniverseTypesTypeIdAsync($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getUniverseTypesTypeIdAsyncWithHttpInfo($typeId, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getUniverseTypesTypeIdAsync
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 Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function postUniverseIds($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->postUniverseIdsWithHttpInfo($names, $datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation postUniverseIds
Bulk names to IDs
@param string[] $names The names to resolve (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\PostUniverseIdsOk | entailment |
public function postUniverseIdsAsync($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->postUniverseIdsAsyncWithHttpInfo($names, $datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation postUniverseIdsAsync
Bulk names to IDs
@param string[] $names The names to resolve (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function postUniverseNamesAsync($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->postUniverseNamesAsyncWithHttpInfo($ids, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation postUniverseNamesAsync
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 string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function get($id)
{
if (!$this->isSingletonClassBind($id)) {
return $this->container->make($id);
}
return $this->container->get($id);
} | Finds an entry of the container by its identifier and returns it.
@param string $id Identifier of the entry to look for.
@throws NotFoundExceptionInterface No entry was found for **this** identifier.
@throws ContainerExceptionInterface Error while retrieving the entry.
@return mixed Entry. | entailment |
public function detectWhenRequestHasNotBeenHandled()
{
add_action('wp_footer', function () {
$this->requestHasBeenHandled();
});
add_action('shutdown', function () {
if (!$this->hasRequestBeenHandled()) {
if ($this->has('__wp-controller-miss-template') && $this->has('__wp-controller-miss-controller')) {
wp_die(
'Loaded template <code>' .
$this->get('__wp-controller-miss-template') .
'</code> but couldn\'t find class <code>' .
$this->get('__wp-controller-miss-controller') .
'</code>'
);
}
}
});
} | Detect when the request has not been handled and throw an exception
@return void | entailment |
public function setSquadId($squadId)
{
if (!is_null($squadId) && ($squadId < 0)) {
throw new \InvalidArgumentException('invalid value for $squadId when calling PutFleetsFleetIdMembersMemberIdMovement., must be bigger than or equal to 0.');
}
$this->container['squadId'] = $squadId;
return $this;
} | Sets squadId
@param int $squadId squad_id integer
@return $this | entailment |
public function setWingId($wingId)
{
if (!is_null($wingId) && ($wingId < 0)) {
throw new \InvalidArgumentException('invalid value for $wingId when calling PutFleetsFleetIdMembersMemberIdMovement., must be bigger than or equal to 0.');
}
$this->container['wingId'] = $wingId;
return $this;
} | Sets wingId
@param int $wingId wing_id integer
@return $this | entailment |
public function getTranslations($locale)
{
//Default locale
if (null === $locale) {
$locale = Config::getParam('default.language', 'es_ES');
}
//Generating the templates translations
$translations = $this->tpl->regenerateTemplates();
$localePath = realpath(BASE_DIR . DIRECTORY_SEPARATOR . 'locale');
$localePath .= DIRECTORY_SEPARATOR . $locale . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR;
//xgettext localizations
$translations = array_merge($translations, GeneratorService::findTranslations(SOURCE_DIR, $locale));
$translations = array_merge($translations, GeneratorService::findTranslations(CORE_DIR, $locale));
$translations = array_merge($translations, GeneratorService::findTranslations(CACHE_DIR, $locale));
$translations[] = "msgfmt {$localePath}translations.po -o {$localePath}translations.mo";
$translations[] = shell_exec('export PATH=\$PATH:/opt/local/bin:/bin:/sbin; msgfmt '. $localePath . 'translations.po -o ' . $localePath . 'translations.mo');
return $this->render('translations.html.twig', array(
'translations' => $translations,
));
} | Method that regenerates the translations
@GET
@param $locale string
@route /admin/translations/{locale}
@label Generador de locales
@visible false
@return string HTML | entailment |
public function getDogmaAttributesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getDogmaAttributesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getDogmaAttributesAsync
Get attributes
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getDogmaAttributesAttributeId($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getDogmaAttributesAttributeIdWithHttpInfo($attributeId, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getDogmaAttributesAttributeId
Get attribute information
@param int $attributeId A dogma attribute ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk | entailment |
public function getDogmaAttributesAttributeIdAsync($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getDogmaAttributesAttributeIdAsyncWithHttpInfo($attributeId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getDogmaAttributesAttributeIdAsync
Get attribute information
@param int $attributeId A dogma attribute ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getDogmaEffects($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getDogmaEffectsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getDogmaEffects
Get effects
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return int[] | entailment |
public function getDogmaEffectsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getDogmaEffectsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getDogmaEffectsAsync
Get effects
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getDogmaEffectsEffectIdAsync($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getDogmaEffectsEffectIdAsyncWithHttpInfo($effectId, $datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getDogmaEffectsEffectIdAsync
Get effect information
@param int $effectId A dogma effect ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function generateModule()
{
Logger::log("Arranque generador de módulos al solicitar " . $this->getRequest()->getRequestUri());
/* @var $form \PSFS\base\config\ConfigForm */
$form = new ModuleForm();
$form->build();
return $this->render("modules.html.twig", array(
'form' => $form,
));
} | Método que genera un nuevo módulo
@GET
@route /admin/module
@return string HTML
@throws \HttpException | entailment |
protected static function calculateResourcePathname($filenamePath, $source)
{
$sourceFile = preg_replace("/'/", "", $source[1]);
if (preg_match('/\#/', $sourceFile)) {
$sourceFile = explode("#", $sourceFile);
$sourceFile = $sourceFile[0];
}
if (preg_match('/\?/', $sourceFile)) {
$sourceFile = explode("?", $sourceFile);
$sourceFile = $sourceFile[0];
}
$orig = realpath(dirname($filenamePath) . DIRECTORY_SEPARATOR . $sourceFile);
return $orig;
} | Método que calcula el path completo a copiar un recurso
@param string $filenamePath
@param string[] $source
@return string | entailment |
public function addFile($filename)
{
if (file_exists($this->path . $filename) && preg_match('/\.' . $this->type . '$/i', $filename)) {
$this->files[] = $filename;
} elseif (!empty($this->domains)) {
foreach ($this->domains as $domain => $paths) {
$domainFilename = str_replace($domain, $paths["public"], $filename);
if (file_exists($domainFilename) && preg_match('/\.' . $this->type . '$/i', $domainFilename)) {
$this->files[] = $domainFilename;
}
}
}
return $this;
} | Método que añade un nuevo fichero al proceso de generación de los assets
@param $filename
@return AssetsParser
@internal param string $type | entailment |
public function setHash($hash)
{
$cache = Config::getParam('cache.var', '');
$this->hash = $hash . (strlen($cache) ? '.' : '') . $cache;
return $this;
} | Método que establece el hash con el que compilar los assets
@param string $hash
@return AssetsParser | entailment |
public function compile()
{
//Unificamos ficheros para que no se retarde mucho el proceso
$this->files = array_unique($this->files);
switch ($this->type) {
default:
case "js":
$this->compileJs();
break;
case "css":
$this->compileCss();
break;
}
return $this;
} | Método que procesa los ficheros solicitados en función del modo de ejecución
@return AssetsParser
@internal param string $type
@throws ConfigException | entailment |
protected function compileCss()
{
$base = $this->path . "css" . DIRECTORY_SEPARATOR;
if ($this->debug || !file_exists($base . $this->hash . ".css")) {
$data = '';
if (0 < count($this->files)) {
$minifier = new CSS();
foreach ($this->files as $file) {
$data = $this->processCssLine($file, $base, $data);
}
}
if($this->debug) {
$this->storeContents($base . $this->hash . ".css", $data);
} else {
$minifier = new CSS();
$minifier->add($data);
ini_set('max_execution_time', -1);
ini_set('memory_limit', -1);
GeneratorHelper::createDir($base);
$minifier->minify($base . $this->hash . ".css");
ini_restore('memory_limit');
ini_restore('max_execution_time');
}
unset($minifier);
}
return $this;
} | Método que compila los ficheros css y los procesa en función del modo de ejecución
@return $this
@throws \PSFS\base\exception\GeneratorException | entailment |
protected function compileJs()
{
$base = $this->path . "js" . DIRECTORY_SEPARATOR;
if ($this->debug || !file_exists($base . $this->hash . ".js")) {
$data = '';
if (0 < count($this->files)) {
$minifier = new JS();
foreach ($this->files as $file) {
$pathParts = explode("/", $file);
if (file_exists($file)) {
if ($this->debug) {
$data = $this->putDebugJs($pathParts, $base, $file);
} elseif (!file_exists($base . $this->hash . ".js")) {
$minifier->add($file);
//$data = $this->putProductionJs($base, $file, $data);
}
}
}
if($this->debug) {
$this->storeContents($base . $this->hash . ".js", $data);
} else {
ini_set('max_execution_time', -1);
ini_set('memory_limit', -1);
GeneratorHelper::createDir($base);
$minifier->minify($base . $this->hash . ".js");
ini_restore('memory_limit');
ini_restore('max_execution_time');
}
unset($minifier);
}
}
return $this;
} | Método que compila los ficheros javascript en función del modo de ejecución
@return $this
@throws \PSFS\base\exception\GeneratorException | entailment |
private function storeContents($path, $content = "")
{
GeneratorHelper::createDir(dirname($path));
if ("" !== $content && false === file_put_contents($path, $content)) {
throw new ConfigException(t('No se tienen permisos para escribir en ' . $path));
}
} | Método para guardar cualquier contenido y controlar que existe el directorio y se guarda correctamente
@param string $path
@param string $content
@throws \PSFS\base\exception\GeneratorException | entailment |
protected function printJs()
{
if ($this->debug && 0 < count($this->compiled_files)) {
foreach ($this->compiled_files as $file) {
echo "\t\t<script type='text/javascript' src='{$file}'></script>\n";
}
} else {
$basePath = $this->cdnPath ?: '';
echo "\t\t<script type='text/javascript' src='" . $basePath . "/js/" . $this->hash . ".js'></script>\n";
}
} | Método que devuelve el html con la ruta compilada del recurso javascript | entailment |
protected function processCssLine($file, $base, $data)
{
if (file_exists($file)) {
$pathParts = explode("/", $file);
$filePath = $this->hash . "_" . $pathParts[count($pathParts) - 1];
if (!file_exists($base . $filePath) || filemtime($base . $filePath) < filemtime($file) || $this->debug) {
//Si tenemos modificaciones tenemos que compilar de nuevo todos los ficheros modificados
if (file_exists($base . $this->hash . ".css") && @unlink($base . $this->hash . ".css") === false) {
throw new ConfigException("Can't unlink file " . $base . $this->hash . ".css");
}
$this->loopCssLines($file);
}
if ($this->debug) {
$data = file_get_contents($file);
$this->storeContents($base . $filePath, $data);
} else {
$data .= file_get_contents($file);
}
$this->compiled_files[] = "/css/" . $filePath;
}
return $data;
} | Método que procesa cada línea de la hoja de estilos para copiar los recursos asociados
@param string $file
@param string $base
@param string $data
@return false|string
@throws \PSFS\base\exception\GeneratorException | entailment |
public static function findDomainPath($string, $filePath)
{
$domains = Template::getDomains(TRUE);
$filenamePath = null;
if (!file_exists($filePath) && 0 < count($domains)) {
foreach ($domains as $domain => $paths) {
$domainFilename = str_replace($domain, $paths["public"], $string);
if (file_exists($domainFilename)) {
$filenamePath = $domainFilename;
continue;
}
}
}
return $filenamePath;
} | Servicio que busca el path para un dominio dado
@param $string
@param string $filePath
@return string | entailment |
public static function calculateAssetPath($string, $name, $return, $filenamePath)
{
$ppath = explode("/", $string);
$originalFilename = $ppath[count($ppath) - 1];
$base = WEB_DIR . DIRECTORY_SEPARATOR;
$file = "";
$htmlBase = "";
$debug = Config::getInstance()->getDebugMode();
$cache = Config::getInstance()->get('cache.var');
$cache = $cache ? '.' . $cache : '';
$finfo = finfo_open(FILEINFO_MIME_TYPE); // devuelve el tipo mime de su extensión
$mime = finfo_file($finfo, $filenamePath);
finfo_close($finfo);
if (preg_match('/\.css$/i', $string)) {
$file = "/" . substr(md5($string), 0, 8) . "$cache.css";
$htmlBase = "css";
if ($debug) {
$file = str_replace(".css", "_" . $originalFilename, $file);
}
} elseif (preg_match('/\.js$/i', $string)) {
$file = "/" . substr(md5($string), 0, 8) . "$cache.js";
$htmlBase = "js";
if ($debug) {
$file = str_replace(".js", "_" . $originalFilename, $file);
}
} elseif (preg_match("/image/i", $mime)) {
$ext = explode(".", $string);
$file = "/" . substr(md5($string), 0, 8) . "." . $ext[count($ext) - 1];
$htmlBase = "img";
if ($debug) {
$file = str_replace("." . $ext[count($ext) - 1], "_" . $originalFilename, $file);
}
} elseif (preg_match("/(doc|pdf)/i", $mime)) {
$ext = explode(".", $string);
$file = "/" . substr(md5($string), 0, 8) . "." . $ext[count($ext) - 1];
$htmlBase = "docs";
if ($debug) {
$file = str_replace("." . $ext[count($ext) - 1], "_" . $originalFilename, $file);
}
} elseif (preg_match("/(video|audio|ogg)/i", $mime)) {
$ext = explode(".", $string);
$file = "/" . substr(md5($string), 0, 8) . "." . $ext[count($ext) - 1];
$htmlBase = "media";
if ($debug) {
$file = str_replace("." . $ext[count($ext) - 1], "_" . $originalFilename, $file);
}
} elseif (preg_match("/(text|html)/i", $mime)) {
$ext = explode(".", $string);
$file = "/" . substr(md5($string), 0, 8) . "." . $ext[count($ext) - 1];
$htmlBase = "templates";
if ($debug) {
$file = str_replace("." . $ext[count($ext) - 1], "_" . $originalFilename, $file);
}
} elseif (!$return && !is_null($name)) {
$htmlBase = '';
$file = $name;
}
$filePath = $htmlBase . $file;
return array($base, $htmlBase, $filePath);
} | Método que calcula el path de un recurso web
@param string $string
@param string $name
@param boolean $return
@param string $filenamePath
@return string[] | entailment |
public static function extractCssLineResource($handle, $filenamePath)
{
$line = fgets($handle);
$urls = array();
if (preg_match_all('#url\((.*?)\)#', $line, $urls, PREG_SET_ORDER)) {
foreach ($urls as $source) {
$orig = self::calculateResourcePathname($filenamePath, $source);
if(!empty($orig)) {
$origPart = preg_split("/Public/i", $orig);
$dest = WEB_DIR . $origPart[1];
GeneratorHelper::createDir(dirname($dest));
if (@copy($orig, $dest) === false) {
throw new ConfigException("Can't copy " . $orig . " to " . $dest);
}
} else {
Logger::log($filenamePath . ' has an empty origin with the url ' . $source, LOG_WARNING);
}
}
}
} | Método que extrae el recurso css de una línea de estilos css
@param $handle
@param string $filenamePath
@throws \PSFS\base\exception\GeneratorException | entailment |
protected function extractSourceFilename($source)
{
$sourceFIle = preg_replace("/'/", "", $source[1]);
if (preg_match('/\#/', $sourceFIle)) {
$sourceFIle = explode("#", $sourceFIle);
$sourceFIle = $sourceFIle[0];
}
if (preg_match('/\?/', $sourceFIle)) {
$sourceFIle = explode("?", $sourceFIle);
$sourceFIle = $sourceFIle[0];
return $sourceFIle;
}
return $sourceFIle;
} | Método que extrae el nombre del fichero de un recurso
@param string $source
@return string | entailment |
public function toHtmlInternal($value = null, $submitted = false, $intCount = 0)
{
if ($this->__type == ValidForm::VFORM_CHECK_LIST) {
$strName = ($intCount == 0) ? $this->__name : str_replace("[]", "", $this->__name) . "_" . $intCount . "[]";
} else {
$strName = ($intCount == 0) ? $this->__name : $this->__name . "_" . $intCount;
}
$strId = ($intCount == 0) ? $this->__id : $this->__id . "_" . $intCount;
if (is_array($value)) {
foreach ($value as $valueItem) {
if ($valueItem == $this->__value) {
$this->setFieldMeta("checked", "checked");
break;
} else {
if ($this->__type == ValidForm::VFORM_RADIO_LIST) {
// Uncheck all others if this is a radio list
$this->setFieldMeta("checked", null, true); // Remove 'checked'
}
}
}
} else {
$blnCheckedSet = false;
if ($this->__checked && is_null($value) && ! $submitted) {
$this->setFieldMeta("checked", "checked");
$blnCheckedSet = true;
} else {
$this->setFieldMeta("checked", null, true); // Remove 'checked'
}
if ($value == $this->__value || $blnCheckedSet) {
$this->setFieldMeta("checked", "checked");
} else {
$this->setFieldMeta("checked", null, true); // Remove 'checked'
}
}
// *** Convert the Element type to HTML type.
/* TODO: Refactor to typeToHtmlType method and implement in all element classes. */
$type = "";
switch ($this->__type) {
case ValidForm::VFORM_RADIO_LIST:
$type = "radio";
break;
case ValidForm::VFORM_CHECK_LIST:
$type = "checkbox";
break;
}
$strOutput = "<label for=\"{$strId}\"{$this->__getLabelMetaString()}>\n";
$strOutput .= "<input type=\"{$type}\" value=\"{$this->__value}\" name=\"{$strName}\"
id=\"{$strId}\"{$this->__getFieldMetaString()}/>{$this->__label}\n";
$strOutput .= "</label>\n";
return $strOutput;
} | Generate HTML output
See {@link \ValidFormBuilder\Element::toHtml()}
@see \ValidFormBuilder\Element::toHtml() | entailment |
public function addField($name, $type, $validationRules = array(), $errorHandlers = array(), $meta = array())
{
// Creating dynamic fields inside a multifield is not supported.
foreach(['dynamic', 'dynamicLabel', 'dynamicRemoveLabel'] as $metaKey) {
if (array_key_exists($metaKey, $meta)) {
unset($meta[$metaKey]);
}
}
// Render the field and add it to the multifield field collection.
$objField = ValidForm::renderField($name, "", $type, $validationRules, $errorHandlers, $meta);
// *** Set the parent for the new field.
$objField->setMeta("parent", $this, true);
$this->__fields->addObject($objField);
if ($this->__dynamic) {
// *** The dynamic count can be influenced by a meta value.
$intDynamicCount = (isset($meta["dynamicCount"])) ? $meta["dynamicCount"] : 0;
$objHiddenField = new Hidden($objField->getId() . "_dynamic", ValidForm::VFORM_INTEGER, array(
"default" => $intDynamicCount,
"dynamicCounter" => true
));
$this->__fields->addObject($objHiddenField);
$objField->setDynamicCounter($objHiddenField);
}
return $objField;
} | Add a field to the MultiField collection.
Same as {@link \ValidFormBuilder\ValidForm::addField()} with the only difference that the `MultiField::addField()`
does not take a field label since that's already set when initialising the `MultiField`.
@param string $name Field name
@param integer $type Field type
@param array $validationRules Validation rules array
@param array $errorHandlers Error handling array
@param array $meta The meta array
@return \ValidFormBuilder\Element | entailment |
public function addText($strText, $meta = array())
{
$objString = new StaticText($strText, $meta);
$objString->setMeta("parent", $this, true);
$this->__fields->addObject($objString);
return $objString;
} | Add text to the multifield.
Same as {@link \ValidFormBuilder\ValidForm::addText()}
@param string $strText The text to add (can be HTML as well)
@param array $meta The meta array
@return \ValidFormBuilder\StaticText | entailment |
public function __toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayError = true, $intCount = 0)
{
// *** Conditional meta should be set before all other meta. Otherwise the set meta is being reset.
$this->setConditionalMeta();
// Do nothing if multifield has no child fields.
if ($this->__fields->count() == 0) {
return "";
}
$blnError = false;
$arrError = array();
$blnRequired = false;
/* @var $field Element */
foreach ($this->__fields as $field) {
$objValidator = $field->getValidator();
if (is_object($objValidator)) {
// *** Check if this multifield should have required styling.
if ($objValidator->getRequired()) {
$blnRequired = true;
}
if ($submitted && ! $objValidator->validate($intCount) && $blnDisplayError) {
$blnError = true;
$strError = $field->getValidator()->getError($intCount);
if (! in_array($strError, $arrError)) {
$arrError[] = $strError;
}
}
}
}
// *** We asume that all dynamic fields greater than 0 are never required.
if ($blnRequired && $intCount == 0) {
$this->setMeta("class", "vf__required");
} else {
$this->setMeta("class", "vf__optional");
}
// *** Set custom meta.
if ($blnError) {
$this->setMeta("class", "vf__error");
}
$this->setMeta("class", "vf__multifield");
if ($this->isRemovable()) {
$this->setMeta("class", "vf__removable");
}
//*** Add data-dynamic="original" or data-dynamic="clone" attributes to dynamic fields
if ($this->isDynamic()) {
if ($intCount === 0) {
// This is the first, original element. Make sure to define that.
$this->setMeta('data-dynamic', 'original', true);
} else {
$this->setMeta('data-dynamic', 'clone', true);
$this->setMeta("class", "vf__clone");
}
}
$strId = ($intCount == 0) ? $this->getId() : $this->getId() . "_{$intCount}";
$strOutput = "<div{$this->__getMetaString()} id=\"{$strId}\">\n";
if ($blnError) {
$strOutput .= "<p class=\"vf__error\">" . implode("</p><p class=\"vf__error\">", $arrError) . "</p>";
}
$strLabel = (! empty($this->__requiredstyle) && $blnRequired) ? sprintf($this->__requiredstyle, $this->__label) : $this->__label;
if (! empty($this->__label)) {
$strOutput .= "<label for=\"{$strId}\"{$this->__getLabelMetaString()}>{$strLabel}</label>\n";
}
foreach ($this->__fields as $field) {
// Skip the hidden dynamic counter fields.
if (($intCount > 0) && (get_class($field) == "ValidFormBuilder\\Hidden") && $field->isDynamicCounter()) {
continue;
}
$strOutput .= $field->__toHtml($submitted, true, $blnLabel, $blnDisplayError, $intCount);
}
if (! empty($this->__tip)) {
$strOutput .= "<small class=\"vf__tip\"{$this->__getTipMetaString()}>{$this->__tip}</small>\n";
}
if ($this->isRemovable()) {
$this->setMeta("dynamicRemoveLabelClass", "vf__removeLabel");
$strOutput .= $this->getRemoveLabelHtml();
}
$strOutput .= "</div>\n";
if ($intCount == $this->getDynamicCount()) {
$strOutput .= $this->getDynamicHtml();
}
return $strOutput;
} | See {@link \ValidFormBuilder\Base::__toHtml()}
@param boolean $submitted
@param boolean $blnSimpleLayout
@param boolean $blnLabel
@param boolean $blnDisplayError
@param integer $intCount
@return string Generated HTML | entailment |
protected function getDynamicHtml()
{
$strReturn = "";
if ($this->__dynamic && !empty($this->__dynamicLabel)) {
$arrFields = array();
// Generate an array of field id's
foreach ($this->__fields as $field) {
// Skip the hidden dynamic counter fields.
if ((get_class($field) == "ValidFormBuilder\\Hidden") && $field->isDynamicCounter()) {
continue;
}
if (!empty($field->getName())) {
$arrFields[$field->getId()] = $field->getName();
}
}
$strReturn .= "<div class=\"vf__dynamic\">";
$strReturn .= "<a href=\"#\" data-target-id=\"" . implode("|", array_keys($arrFields))
. "\" data-target-name=\"" . implode("|", array_values($arrFields))
. "\"{$this->__getDynamicLabelMetaString()}>{$this->__dynamicLabel}</a>";
$strReturn .= "</div>";
}
return $strReturn;
} | Generate dynamic HTML for client-side field duplication
@return string | entailment |
public function toJS($intDynamicPosition = 0)
{
$strOutput = "";
foreach ($this->__fields as $field) {
$strOutput .= $field->toJS($this->__dynamic);
}
// *** Condition logic.
if ($this->__dynamic || $intDynamicPosition) {
$intDynamicCount = $this->getDynamicCount();
for ($intCount = 0; $intCount <= $intDynamicCount; $intCount ++) {
// *** Render the condition logic per dynamic field.
$strOutput .= $this->conditionsToJs($intCount);
}
} else {
// *** Condition logic.
$strOutput .= $this->conditionsToJs();
}
return $strOutput;
} | Generate Javascript
See {@\ValidFormBuilder\Base::toJS()}
@see \ValidFormBuilder\Base::toJS() | entailment |
public function hasContent($intCount = 0)
{
$blnReturn = false;
/* @var $objField Element */
foreach ($this->__fields as $objField) {
if (get_class($objField) !== "ValidFormBuilder\\Hidden") {
$objValidator = $objField->getValidator();
if (is_object($objValidator)) {
$varValue = $objValidator->getValue($intCount);
if (! empty($varValue)) {
$blnReturn = true;
break;
}
}
}
}
return $blnReturn;
} | Loop through all child fields and check their values. If one value is not empty, the MultiField has content.
@param integer $intCount The current dynamic count.
@return boolean True if multifield has content, false if not. | entailment |
public function setData($strKey = null, $varValue = null)
{
$this->__meta["data"] = (isset($this->__meta["data"])) ? $this->__meta["data"] : array();
if (isset($this->__meta["data"])) {
if (! is_null($strKey) && ! is_null($varValue)) {
$this->__meta["data"][$strKey] = $varValue;
}
}
return isset($this->__meta["data"][$strKey]);
} | Store data in the current object.
See {@link \ValidFormBuilder\Base::setData()} for a full description
@param string $strKey The key for this storage
@param mixed $varValue The value to store
@return boolean True if set successful, false if not. | entailment |
public function getData($key = null)
{
$varReturn = false;
if (isset($this->__meta["data"])) {
if ($key == null) {
$varReturn = $this->__meta["data"];
} else {
if (isset($this->__meta["data"][$key])) {
$varReturn = $this->__meta["data"][$key];
}
}
}
return $varReturn;
} | Get a value from the internal data array.
See {@link \ValidFormBuilder\Base::getData()} for a full description
@param string $key The key of the data attribute to return
@return mixed If a key is provided, return it's value. If no key provided, return the whole data array.
If anything is not set or incorrect, return false. | entailment |
protected function setFromMixedSource($ip)
{
if (is_int($ip) || is_string($ip)) {
if (is_int($ip)) {
/*
* Convert int to dotted IP string
*/
$ip = long2ip($ip);
}
/*
* We might have been given a string, or we may have converted to string. Attempt to make it an int.
*/
if (is_string($ip)) {
$ip = ip2long($ip);
}
} else {
$ip = false;
}
/*
* If given an improper data type, we set the $ip to false.
* Also, the conversion through ip2long() could result in it becoming false.
* Either way, we want to bail out.
*/
if ($ip === false) {
throw new \Exception(__METHOD__.' requires valid IPV4 address string in dot-notation (aaa.bbb.ccc.ddd).');
}
$this->set($ip);
} | Format and validate for given string or integer formatted IPV4 network address.
@param string|int $ip The IP address (in dot-notation-string format or integer) to be represented by the instance
@throws Exception | entailment |
public function get($format = self::FORMAT_LONG_NOTATION)
{
return $format === self::FORMAT_DOTTED_NOTATION ? long2ip($this->address) : $this->address;
} | Get the integer or dot-notated-string representation of the address.
@param int $format Whether to return as integer (\JAAulde\IP\V4\Address::FORMAT_LONG_NOTATION) or dot-notation-string (\JAAulde\IP\V4\Address::FORMAT_DOTTED_NOTATION)
@return string|int | entailment |
public function valid()
{
if ($this->container['response'] === null) {
return false;
}
$allowedValues = $this->getResponseAllowableValues();
if (!in_array($this->container['response'], $allowedValues)) {
return false;
}
return true;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | entailment |
public function setResponse($response)
{
$allowedValues = $this->getResponseAllowableValues();
if (!in_array($response, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'response', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['response'] = $response;
return $this;
} | Sets response
@param string $response response string
@return $this | entailment |
public function listCollections(array $options = [])
{
$collections = [];
foreach ($this->collections as $name => $collection) {
$collections[] = [
'name' => $this->name . '.' . $name,
'options' => $collection['options']
];
}
return new CollectionInfoLegacyIterator(new ArrayIterator($collections));
} | List collections
@param array $options
@return CollectionInfoLegacyIterator | entailment |
public function createCollection($name, array $options = [])
{
if (isset($this->collections[$name])) {
throw new RuntimeException('collection already exists');
}
$this->collections[$name] = [
'collection' => new MockCollection($name, $this),
'options' => $options
];
return [
'ok' => 1.0
];
} | Create collection
@param string $name
@param array $options
@return array | entailment |
public function selectCollection($name, array $options = [])
{
if (!isset($this->collections[$name])) {
$this->createCollection($name);
}
return $this->collections[$name]['collection'];
} | Return collection
@param string $name
@param array $options
@return Collection | entailment |
public function getCorporationsCorporationIdRoles($corporationId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsCorporationIdRolesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCorporationsCorporationIdRoles
Get corporation member roles
@param int $corporationId A 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 preferred over a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@return \nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[] | entailment |
public function getCorporationsNames($corporationIds, $datasource = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCorporationsNamesWithHttpInfo($corporationIds, $datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getCorporationsNames
Get corporation names
@param int[] $corporationIds A comma separated list of corporation IDs (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@return \nullx27\ESI\Models\GetCorporationsNames200Ok[] | entailment |
protected function getCountersRecursive($objFields, $objCollection = null)
{
if (is_null($objCollection)) {
$objCollection = new Collection();
}
foreach ($objFields as $objField) {
if ($objField instanceof Element && $objField->isDynamicCounter()) {
$objCollection->addObject($objField);
}
if ($objField->hasFields()) {
$this->getCountersRecursive($objField->getFields(), $objCollection);
}
}
return $objCollection;
} | Get a collection of fields and look for dynamic counters recursively
@param Collection $objFields
@param Collection $objCollection
@return Collection | entailment |
public function addCondition($strType, $blnValue, $arrComparisons, $intComparisonType = ValidForm::VFORM_MATCH_ANY)
{
if ($this->hasCondition($strType)) {
// Get an existing condition if it's already there.
$objCondition = $this->getCondition($strType);
} else {
// Add a new one if this condition type doesn't exist yet.
$objCondition = new Condition($this, $strType, $blnValue, $intComparisonType);
}
if (is_array($arrComparisons) && count($arrComparisons) > 0) {
/* @var $varComparison array|Comparison */
foreach ($arrComparisons as $varComparison) {
if (is_array($varComparison) || get_class($varComparison) === "ValidFormBuilder\\Comparison") {
try {
$objCondition->addComparison($varComparison);
} catch (\InvalidArgumentException $e) {
throw new \Exception("Could not set condition: " . $e->getMessage(), 1);
}
} else {
throw new \InvalidArgumentException("Invalid or no comparison(s) supplied.", 1);
}
}
array_push($this->__conditions, $objCondition);
} else {
throw new \InvalidArgumentException("Invalid or no comparison(s) supplied.", 1);
}
} | Add a new condition to the current field
For examples, check {@link \ValidFormBuilder\Condition}
@param string $strType Define the condition type. This can be either `required`, `visibile` or `enabled`
@param boolean $blnValue Define whether this condition activates if the comparison(s) are true or false.
@param array $arrComparisons An array of Comparison objects
@param string $intComparisonType The comparison type.
Either `ValidForm::VFORM_MATCH_ANY` or `ValidForm::VFORM_MATCH_ALL`. With `VFORM_MATCH_ANY`,
as soon as one of the comparisons validates the condition, the condition is enforced.
With `ValidForm::VFORM_MATCH_ALL`, all of the comparisons must validate before the condition will be enforced.
@throws \Exception if Condition could not be set
@throws \InvalidArgumentException If invalid arguments are supplied | entailment |
public function getCondition($strProperty)
{
$objReturn = null;
$objConditions = $this->getConditions();
foreach ($objConditions as $objCondition) {
if ($objCondition->getProperty() === strtolower($strProperty)) {
$objReturn = $objCondition;
break;
}
}
if (is_null($objReturn) && is_object($this->__parent)) {
// *** Find condition in parent.
$objReturn = $this->__parent->getCondition($strProperty);
}
return $objReturn;
} | Get element's Condition object
Note: When chaining methods, always use hasCondition() first before chaining
for example `getCondition()->isMet()`.
@param string $strProperty Condition type e.g. 'required', 'visibile' and 'enabled'
@return Condition|null Found condition or null if no condition is found. | entailment |
public function hasCondition($strProperty)
{
$blnReturn = false;
foreach ($this->__conditions as $objCondition) {
if ($objCondition->getProperty() === strtolower($strProperty)) {
$blnReturn = true;
break;
}
}
return $blnReturn;
} | Check if the current field contains a condition object of a specific type
@param string $strProperty Condition type e.g. `required`, `visibile` and `enabled`
@return boolean True if element has condition object set, false if not | entailment |
public function getConditionRecursive($strProperty, $objContext = null)
{
$objReturn = null;
$objContext = (is_null($objContext)) ? $this : $objContext;
$objCondition = $objContext->getCondition($strProperty);
if (! is_object($objCondition)) {
// Go look for a condition at this element's parent.
$objParent = $objContext->getMeta("parent", null);
if (! is_null($objParent)) {
$objReturn = $objContext->getConditionRecursive($strProperty, $objParent);
}
} else {
$objReturn = $objCondition;
}
return $objReturn;
} | This gets the condition of a given property, just like {@link \ValidFormBuilder\Base::getCondition()}.
When no condition is found on the current element, the method searches for a condition in it's parent element.
@param string $strProperty Condition type e.g. `required`, `visibile` and `enabled`
@param \ValidFormBuilder\Element $objContext
@return \ValidFormBuilder\Condition|null | entailment |
public function getDynamicButtonMeta()
{
$strReturn = "";
$objCondition = $this->getCondition("visible");
if (is_object($objCondition)) {
$blnResult = $objCondition->isMet();
// This can be applied on all sorts of subjects.
if ($blnResult) {
if (! $objCondition->getValue()) {
$strReturn = " style=\"display:none;\"";
}
} else {
if ($objCondition->getValue()) {
$strReturn = " style=\"display:none;\"";
}
}
}
return $strReturn;
} | This method determines wheter or not to show the 'add extra field' dynamic button
based on it's parent's condition state. | entailment |
public function setConditionalMeta()
{
foreach ($this->__conditions as $objCondition) {
$blnResult = $objCondition->isMet();
switch ($objCondition->getProperty()) {
case "visible":
// This can be applied on all sorts of subjects.
if ($blnResult) {
if ($objCondition->getValue()) {
$this->setMeta("style", "display: block;");
} else {
$this->setMeta("style", "display: none;");
}
} else {
if ($objCondition->getValue()) {
$this->setMeta("style", "display: none;");
} else {
$this->setMeta("style", "display: block;");
}
}
// Continueing to the required property.
case "required":
// This can only be applied on all subjects except for Paragraphs
if (get_class($objCondition->getSubject()) !== "ValidFormBuilder\\Paragraph") {
if ($blnResult) {
if ($objCondition->getValue()) {
if (get_class($this) !== "ValidFormBuilder\\Fieldset") {
// TODO Disabled because it messes up multifields.
// $this->setMeta("class", "vf__required", true);
}
} else {
if (get_class($this) !== "ValidFormBuilder\\Fieldset") {
// TODO Disabled because it messes up multifields.
// $this->setMeta("class", "vf__optional", true);
}
}
} else {
if ($objCondition->getValue()) {
if (get_class($this) !== "ValidFormBuilder\\Fieldset") {
// TODO Disabled because it messes up multifields.
// $this->setMeta("class", "vf__optional", true);
}
} else {
if (get_class($this) !== "ValidFormBuilder\\Fieldset") {
// TODO Disabled because it messes up multifields.
// $this->setMeta("class", "vf__required", true);
}
}
}
}
break;
case "enabled":
// This can only be applied on all subjects except for Paragraphs and Groups
if (get_class($objCondition->getSubject()) !== "ValidFormBuilder\\Paragraph"
&& get_class($objCondition->getSubject()) !== "ValidFormBuilder\\Group") {
if ($blnResult) {
if ($objCondition->getValue()) {
$this->setFieldMeta("disabled", "", true);
} else {
$this->setFieldMeta("disabled", "disabled", true);
}
} else {
if ($objCondition->getValue()) {
$this->setFieldMeta("disabled", "disabled", true);
} else {
$this->setFieldMeta("disabled", "", true);
}
}
}
break;
}
}
} | Based on which conditions are met, corresponding metadata is set on the object. | entailment |
public function setMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta($property, $value, $blnOverwrite);
} | Set meta property.
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return array | entailment |
public function setFieldMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta("field" . $property, $value, $blnOverwrite);
} | Set field specific meta data
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return mixed The newly set value | entailment |
public function getFieldMeta($property = null, $fallbackValue = "")
{
if (is_null($property)) {
$varReturn = $this->__fieldmeta;
} elseif (isset($this->__fieldmeta[$property])
&& !is_null($this->__fieldmeta[$property])
) {
$varReturn = $this->__fieldmeta[$property];
} else {
$varReturn = $fallbackValue;
}
return $varReturn;
} | Get field meta property.
@param string $property Property to get from internal field meta array.
@param string $fallbackValue Optional fallback value if no value is found for requested property
@return mixed | entailment |
public function setLabelMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta("label" . $property, $value, $blnOverwrite);
} | Set label specific meta data
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return mixed The newly set value | entailment |
public function setTipMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta("tip" . $property, $value, $blnOverwrite);
} | Set tip specific meta data
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return mixed The newly set value | entailment |
public function setDynamicLabelMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta("dynamicLabel" . $property, $value, $blnOverwrite);
} | Set dynamic label specific meta data
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return mixed The newly set value | entailment |
public function setDynamicRemoveLabelMeta($property, $value, $blnOverwrite = false)
{
return $this->__setMeta("dynamicRemoveLabel" . $property, $value, $blnOverwrite);
} | Set dynamic remove label specific meta data
@param string $property Property name.
@param mixed $value Property value.
@param boolean $blnOverwrite Optionally use this boolean to force an overwrite of previous property value.
@return mixed The newly set value | entailment |
public function getMeta($property = null, $fallbackValue = "")
{
if (is_null($property)) {
$varReturn = $this->__meta;
} elseif (isset($this->__meta[$property])
&& !is_null($this->__meta[$property])
) {
$varReturn = $this->__meta[$property];
} else {
$varReturn = $fallbackValue;
}
return $varReturn;
} | Get meta property.
@param string $property Property to get from internal meta array.
@param string $fallbackValue Optional fallback value if requested property has no value
@return mixed | entailment |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.