Esempio n. 1
0
 /**
  * Replace data container
  * 
  * @param Ponticlaro\Bebop\Common\Patterns\CollectionAbstract $container Data container
  */
 public function setDataContainer(\Ponticlaro\Bebop\Common\Patterns\CollectionAbstract $container)
 {
     // Get currently stored data
     $current_data = $this->__data->getAll();
     // Set container and pass current data
     $this->__data = new $container($current_data);
 }
Esempio n. 2
0
 /**
  * Returns the current environment
  * 
  * @return Ponticlaro\Bebop\Env The current environment
  */
 public function getCurrent()
 {
     $envs = $this->__environments->getAll();
     foreach ($envs as $key => $env) {
         if ($env->isCurrent()) {
             return $env;
         }
     }
     return $this->__environments->get('development');
 }
Esempio n. 3
0
 /**
  * Returns all urls
  * 
  * @return array
  */
 public function getAll()
 {
     return $this->__urls->getAll();
 }
Esempio n. 4
0
 /**
  * Returns all hosts
  * 
  * @return array All hosts
  */
 public function getHosts()
 {
     return $this->__hosts->getAll();
 }
Esempio n. 5
0
 /**
  * Returns all paths
  * 
  * @return array
  */
 public function getAll()
 {
     return $this->__paths->getAll();
 }