root/trunk/lib/AkConverters/AkYamlToArray.php
| Revision 1397, 1.0 kB (checked in by bermi, 7 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ |
| 3 | |
| 4 | // +----------------------------------------------------------------------+ |
| 5 | // | Akelos Framework - http://www.akelos.org | |
| 6 | // +----------------------------------------------------------------------+ |
| 7 | // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez | |
| 8 | // | Released under the GNU Lesser General Public License, see LICENSE.txt| |
| 9 | // +----------------------------------------------------------------------+ |
| 10 | |
| 11 | /** |
| 12 | * @package ActiveSupport |
| 13 | * @subpackage Converters |
| 14 | * @author Bermi Ferrer <bermi a.t akelos c.om> |
| 15 | * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org |
| 16 | * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> |
| 17 | */ |
| 18 | |
| 19 | class AkYamlToArray |
| 20 | { |
| 21 | public function convert() |
| 22 | { |
| 23 | require_once(AK_VENDOR_DIR.DS.'TextParsers'.DS.'spyc.php'); |
| 24 | return Spyc::YAMLLoad($this->source); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | ?> |
| 29 |
Note: See TracBrowser for help on using the browser.
