Exemplo n.º 1
0
 /**
  * Get a value from data and remove it afterwards
  *
  * @param string 	$key
  * @param mixed		$default
  * @return mixed
  */
 public function once($key, $default = null)
 {
     $value = \CCArr::get($key, $this->_data, $default);
     \CCArr::delete($key, $this->_data);
     return $value;
 }
Exemplo n.º 2
0
 /**
  * delete data from our array
  *
  * @param string 	$key
  * @return mixed
  */
 public function delete($key)
 {
     CCArr::delete($key, $this->_data);
 }