PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin/PBAPI/PBAPI/data/yml2phpserialize.php

https://bitbucket.org/chamilo/chamilo-ext-repo-photobucket-dev/
PHP | 17 lines | 3 code | 1 blank | 13 comment | 0 complexity | edd7dd95a112f30d5f1c5993fa50ddfc MD5 | raw file
 1<?php
 2/**
 3 * Photobucket API 
 4 * Fluent interface for PHP5
 5 * 
 6 * Requires syck parser to turn yml into php array
 7 * 
 8 * @author Photobucket
 9 * @package PBAPI
10 * @subpackage data
11 * 
12 * @copyright Copyright (c) 2008, Photobucket, Inc.
13 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
14 */
15
16$dt = syck_load(file_get_contents('api-defs.yml'));
17file_put_contents('methods.dat', serialize($dt));