Back to index

php5  5.3.10
Public Member Functions | Private Attributes
gtOptionalSections Class Reference

List of all members.

Public Member Functions

 setOptions ($commandLineOptions)
 getOptions ()
 getSkipifKey ()
 getSkipifExt ()
 hasSkipif ()
 hasSkipifKey ()
 hasSkipifExt ()
 hasIni ()
 hasClean ()
 hasDone ()

Private Attributes

 $optSections
 $skipifKey = ''
 $skipifExt = ''

Detailed Description

Definition at line 2 of file gtOptionalSections.php.


Member Function Documentation

Definition at line 41 of file gtOptionalSections.php.

                               {
    return $this->optSections;
  }

Definition at line 50 of file gtOptionalSections.php.

                                 {
    return $this->skipifExt;
  }

Definition at line 46 of file gtOptionalSections.php.

                                 {
    return $this->skipifKey;
  }

Definition at line 75 of file gtOptionalSections.php.

                             {
    return $this->optSections['clean'];
  }

Definition at line 79 of file gtOptionalSections.php.

                            {
    return $this->optSections['done'];
  }

Definition at line 71 of file gtOptionalSections.php.

                           {
    return $this->optSections['ini'];
  }

Definition at line 54 of file gtOptionalSections.php.

                              {
    return $this->optSections['skipif'];
  }

Definition at line 65 of file gtOptionalSections.php.

                                 {
    if($this->skipifExt != '') {
      return true;
    }
    return false;
  }

Definition at line 58 of file gtOptionalSections.php.

                                 {
    if($this->skipifKey != '') {
      return true;
    }
    return false;
  }
gtOptionalSections::setOptions ( commandLineOptions)

Definition at line 15 of file gtOptionalSections.php.

                                                  {
    if($commandLineOptions->hasOption('s')) {
      $options = explode(':', $commandLineOptions->getOption('s'));

      foreach($options as $option) {

        if(array_key_exists($option, $this->optSections )) {
          $this->optSections[$option] = true;
        } else {
          throw new gtUnknownSectionException('Unrecognised optional section');
        }
      }

      if($commandLineOptions->hasOption('k')) {
        $this->skipifKey = $commandLineOptions->getOption('k');
      }
      
      if($commandLineOptions->hasOption('x')) {
        $this->skipifExt = $commandLineOptions->getOption('x');
      }
      
    }
  }

Member Data Documentation

Initial value:
 array(
    'skipif' => false,
    'ini'    => false,
    'clean'  => false,
    'done'   => false,
  )

Definition at line 4 of file gtOptionalSections.php.

Definition at line 12 of file gtOptionalSections.php.

Definition at line 11 of file gtOptionalSections.php.


The documentation for this class was generated from the following file: