Development

Changeset 6217

You must first sign up to be able to contribute.

Changeset 6217

Show
Ignore:
Timestamp:
11/30/07 01:13:43 (2 years ago)
Author:
dwhittle
Message:

added hasOption + the ability to set preferred state in sfPearEnvironment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/plugin/sfPearEnvironment.class.php

    r5250 r6217  
    44 * This file is part of the symfony package. 
    55 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    121121 
    122122  /** 
     123   * Returns whether configuration name exists. 
     124   * 
     125   * @param  string The configuration name 
     126   * 
     127   * @return boolean True if configuration name exists 
     128   */ 
     129  public function hasOption($name) 
     130  { 
     131    return isset($this->options[$name]); 
     132  } 
     133 
     134  /** 
    123135   * Sets a configuration value. 
    124136   * 
     
    241253    $this->config->set('bin_dir',  $pluginDir); 
    242254 
     255    if($this->hasOption('preferred_state')) 
     256    { 
     257      $this->config->set('preferred_state', $this->getOption('preferred_state')); 
     258    } 
     259 
    243260    // change the PEAR temp dirs 
    244261    $this->config->set('cache_dir',    $cacheDir); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.