public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { self::initVars(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->countryRegionHash = Core::$geoData->getCountryRegionHash(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->words = Utils::getLipsum(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); $customPluginSettings = Core::getPluginSettings(Constants::PLUGIN_DATA_TYPE, "Date"); if (isset($customPluginSettings["useSafeDates"]) && $customPluginSettings["useSafeDates"]) { self::$useSafeDates = true; } }
/** * @param string $runtimeContext "generation" or "ui" */ public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { self::initFirstNames(); self::initLastNames(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); // initialize the phone number formats needed for this Data Type if ($runtimeContext == "generation") { self::initPhoneFormats(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->words = Utils::getLipsum(); $this->validStreetTypes = explode(",", $this->L["street_types"]); $this->numValidStreetTypes = count($this->validStreetTypes); } }
/** * Our custom constructor. This instantiates $words and $numWords for use by the generate() function. * * @param string $runtimeContext */ public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->words = Utils::getLipsum(); $this->numWords = count($this->words); $this->numCompanyTypes = count($this->companyTypes); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); // if we're in the process of generating data then initialize a private var with the // zip formats of all countries registered the system if ($runtimeContext == "generation") { self::initZipFormats(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); // if we're in the process of generating data, populate the private vars with the first and last names // needed for data generation if ($runtimeContext == "generation") { self::initZipFormats(); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->smarty = new SecureSmarty(); $this->smarty->template_dir = realpath(__DIR__ . "/../../../resources/libs/smarty"); $this->smarty->compile_dir = realpath(__DIR__ . "/../../../cache"); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { $this->smarty = new Smarty(); $this->smarty->template_dir = realpath(dirname(__FILE__) . "/../../../libs/smarty"); $this->smarty->compile_dir = realpath(dirname(__FILE__) . "/../../../cache"); } }
public function __construct($runtimeContext) { for ($i = 622126; $i <= 622925; $i++) { $this->creditCardData["discover"][] = $i; } for ($i = 3528; $i <= 3589; $i++) { $this->creditCardData["jcb16"][] = $i; } parent::__construct($runtimeContext); }
public function __construct($runtimeContext) { for ($i = 622126; $i <= 622925; $i++) { $this->prefixList["prefix"][] = $i; } for ($i = 3528; $i <= 3589; $i++) { $this->prefixList["jcb16"][] = $i; } parent::__construct($runtimeContext); if (class_exists("DataType_PAN")) { $this->cardData = DataType_PAN::getAllCreditCardData(); } }
/** * @TODO make the $onlySepa option variable * @param string $runtimeContext */ public function __construct($runtimeContext) { parent::__construct($runtimeContext); $onlySepa = false; if ($runtimeContext == "generation") { $numCountryCodes = 0; foreach (self::$allCountryCodes as $details) { if (!$onlySepa || $details['sepa']) { self::$countryCodes[] = $details; $numCountryCodes++; } } self::$numCountryCodes = $numCountryCodes; } }
public function __construct($runtimeContext) { for ($i = 622126; $i <= 622925; $i++) { $this->prefixList["prefix"][] = $i; } for ($i = 3528; $i <= 3589; $i++) { $this->prefixList["jcb16"][] = $i; } parent::__construct($runtimeContext); if (class_exists("DataType_PAN")) { $this->cardData = DataType_PAN::getAllCreditCardData(); } if (class_exists("DataType_Names")) { $names = new DataType_Names("generation"); $this->firstNames = $names->getFirstNames(); $this->numFirstNames = count($this->firstNames); $this->lastNames = $names->getLastNames(); $this->numLastNames = count($this->lastNames); } }
public function __construct($runtimeContext) { parent::__construct($runtimeContext); if ($runtimeContext == "generation") { } }