Exemplo n.º 1
0
 /**
  * Get all items in collection
  *
  * @return array The collection's source data
  */
 public function all()
 {
     $all = parent::all();
     $result = array();
     foreach ($all as $key => $item) {
         $result[$item['originalKey']] = $item['value'];
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * Retrieve attributes derived from the request.
  *
  * The request "attributes" may be used to allow injection of any
  * parameters derived from the request: e.g., the results of path
  * match operations; the results of decrypting cookies; the results of
  * deserializing non-form-encoded message bodies; etc. Attributes
  * will be application and request specific, and CAN be mutable.
  *
  * @return array Attributes derived from the request.
  */
 public function getAttributes()
 {
     return $this->attributes->all();
 }
Exemplo n.º 3
0
 /**
  * Get all output items.
  *
  * @return array
  */
 public function getOutputs()
 {
     return $this->outputs->all();
 }