[ Index ] |
PHP Cross Reference of PHK Manager |
[Summary view] [Print] [Text view]
1 <?php 2 //============================================================================= 3 // 4 // Copyright Francois Laupretre <phk@tekwire.net> 5 // 6 // Licensed under the Apache License, Version 2.0 (the "License"); 7 // you may not use this file except in compliance with the License. 8 // You may obtain a copy of the License at 9 // 10 // http://www.apache.org/licenses/LICENSE-2.0 11 // 12 // Unless required by applicable law or agreed to in writing, software 13 // distributed under the License is distributed on an "AS IS" BASIS, 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 // See the License for the specific language governing permissions and 16 // limitations under the License. 17 // 18 //============================================================================= 19 /** 20 * @copyright Francois Laupretre <phk@tekwire.net> 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, V 2.0 22 * @category PHK 23 * @package PHK 24 *///========================================================================== 25 26 namespace PHK\Build\PSF { 27 28 if (!class_exists('PHK\Build\PSF\MetaOptions',false)) 29 { 30 31 //============================================================================= 32 /** 33 * This class manages options on the %options line of a PSF 34 * 35 * API status: Private 36 * Included in the PHK PHP runtime: No 37 * Implemented in the extension: No 38 *///========================================================================== 39 40 class MetaOptions extends \Phool\Options\Base 41 { 42 43 // Short/long modifier args 44 45 protected $opt_modifiers=array( 46 array('short' => 's', 'long' => 'syntax', 'value' => true) 47 ); 48 49 // Option values 50 51 protected $options=array( 52 'syntax' => 'yaml' 53 ); 54 55 //----------------------- 56 57 protected function processOption($opt,$arg) 58 { 59 switch($opt) 60 { 61 case 's': 62 $this->options['syntax']=strtolower($arg); 63 break; 64 } 65 } 66 67 //--- 68 } // End of class 69 //=========================================================================== 70 } // End of class_exists 71 //=========================================================================== 72 } // End of namespace 73 //=========================================================================== 74 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Jun 4 18:33:15 2015 | Cross-referenced by PHPXref 0.7.1 |