Ejemplo n.º 1
0
 /**
  *	Age Flashed Data
  *	@param \Touchbase\Data\Store $store
  *	@return VOID
  */
 private static function ageFlashedData(Store $store)
 {
     foreach ($store->get(self::FLASH_KEY . ".aged") as $flashKey) {
         $store->delete($flashKey);
     }
     $store->set(self::FLASH_KEY . ".aged", $store->get(self::FLASH_KEY, []));
     $store->set(self::FLASH_KEY, []);
 }
Ejemplo n.º 2
0
 /**
  *	Get Configuration
  *	@access public
  *	@return void
  */
 public function getConfiguration()
 {
     return \Touchbase\Data\Store::create()->fromArray($this->_iniFileData);
 }
Ejemplo n.º 3
0
 /**
  *	With Errors
  *	Attach an array of errors to the response
  *	@param array $errors
  *	@param string $formName
  *	@return \Touchbase\Control\HTTPResponse
  */
 public function withErrors(array $errors, $formName = 'global')
 {
     $errors = Store::create()->set($formName, Store::create($errors));
     SessionStore::flash($key = "touchbase.key.session.errors", SessionStore::get($key)->set($errors));
     return $this;
 }