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) { ...
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 (o...
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-Agen...
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...
entailment
public function getUniverseCategoriesCategoryIdAsync($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseCategoriesCategoryIdAsyncWithHttpInfo($categoryId, $datasource, $language, $userAgent, $xUserAgent) ->then( ...
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 ...
entailment
public function getUniverseConstellationsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseConstellationsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) ->then( function ($response) { return $response[...
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 U...
entailment
public function getUniverseConstellationsConstellationId($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { list($response) = $this->getUniverseConstellationsConstellationIdWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgen...
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, d...
entailment
public function getUniverseConstellationsConstellationIdAsync($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseConstellationsConstellationIdAsyncWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgent...
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 (option...
entailment
public function getUniverseFactionsAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseFactionsAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) ->then( function ($response) { ...
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 (optio...
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 (option...
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 (o...
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 strin...
entailment
public function getUniverseGraphicsGraphicIdAsync($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseGraphicsGraphicIdAsyncWithHttpInfo($graphicId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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 ...
entailment
public function getUniverseGroupsAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) { return $this->getUniverseGroupsAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent) ->then( function ($response) { return $respo...
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) @para...
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...
entailment
public function getUniverseGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent) ->then( function (...
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 s...
entailment
public function getUniverseMoonsMoonIdAsync($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseMoonsMoonIdAsyncWithHttpInfo($moonId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { retur...
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 $xUserAg...
entailment
public function getUniversePlanetsPlanetIdAsync($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniversePlanetsPlanetIdAsyncWithHttpInfo($planetId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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 strin...
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 (option...
entailment
public function getUniverseRacesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseRacesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) ->then( function ($response) { ret...
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 (o...
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 (opt...
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 $us...
entailment
public function getUniverseRegionsRegionIdAsync($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseRegionsRegionIdAsyncWithHttpInfo($regionId, $datasource, $language, $userAgent, $xUserAgent) ->then( func...
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 strin...
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 ...
entailment
public function getUniverseStargatesStargateIdAsync($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseStargatesStargateIdAsyncWithHttpInfo($stargateId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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) @pa...
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 C...
entailment
public function getUniverseStarsStarIdAsync($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseStarsStarIdAsyncWithHttpInfo($starId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { retur...
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 $xUserAg...
entailment
public function getUniverseStationsStationIdAsync($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getUniverseStationsStationIdAsyncWithHttpInfo($stationId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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 ...
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 ov...
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 str...
entailment
public function getUniverseStructuresStructureIdAsync($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) { return $this->getUniverseStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource, $token, $userAgent, $xUserAgent) ->then( ...
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...
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-A...
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-A...
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 (op...
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-Agen...
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 stri...
entailment
public function getUniverseSystemsSystemIdAsync($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseSystemsSystemIdAsyncWithHttpInfo($systemId, $datasource, $language, $userAgent, $xUserAgent) ->then( func...
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 ...
entailment
public function getUniverseTypesAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) { return $this->getUniverseTypesAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent) ->then( function ($response) { return $respons...
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 stri...
entailment
public function getUniverseTypesTypeIdAsync($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) { return $this->getUniverseTypesTypeIdAsyncWithHttpInfo($typeId, $datasource, $language, $userAgent, $xUserAgent) ->then( function ($respo...
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 $use...
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 Cli...
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) { ...
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 $userAgen...
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) @par...
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'...
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'] = $squad...
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; ...
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 = realpa...
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 (...
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...
entailment
public function getDogmaAttributesAttributeIdAsync($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getDogmaAttributesAttributeIdAsyncWithHttpInfo($attributeId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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) @...
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) ...
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 (option...
entailment
public function getDogmaEffectsEffectIdAsync($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) { return $this->getDogmaEffectsEffectIdAsyncWithHttpInfo($effectId, $datasource, $userAgent, $xUserAgent) ->then( function ($response) { ...
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 $...
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( ...
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('/\?...
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) { $domainFilena...
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": ...
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 $f...
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)...
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 ?: ''; ...
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) |...
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["...
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()->getDeb...
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($filenamePat...
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)) { ...
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 =...
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))...
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 ar...
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...
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 field...
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->ge...
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_obje...
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] = $v...
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->_...
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 ...
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...
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'", ...
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'] ]; } r...
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' => ...
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 st...
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 (option...
entailment
protected function getCountersRecursive($objFields, $objCollection = null) { if (is_null($objCollection)) { $objCollection = new Collection(); } foreach ($objFields as $objField) { if ($objField instanceof Element && $objField->isDynamicCounter()) { $...
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 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 arra...
entailment
public function getCondition($strProperty) { $objReturn = null; $objConditions = $this->getConditions(); foreach ($objConditions as $objCondition) { if ($objCondition->getProperty() === strtolower($strProperty)) { $objReturn = $objCondition; break...
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...
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 \ValidFormBuil...
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) { ...
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. ...
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[$...
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...
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