CODE STYLE class.pmPhing.php

This commit is contained in:
Fernando Ontiveros
2012-10-09 12:58:15 -04:00
parent 409bbdf07c
commit c0b6951bf1

View File

@@ -1,7 +1,8 @@
<?php <?php
/** /**
* class.ArrayPeer.php * class.ArrayPeer.php
* @package workflow.engine.classes *
* @package workflow.engine.classes
* *
* ProcessMaker Open Source Edition * ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc. * Copyright (C) 2004 - 2011 Colosa Inc.
@@ -13,11 +14,11 @@
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details. * GNU Affero General Public License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* For more information, contact Colosa Inc, 2566 Le Jeune Rd., * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com. * Coral Gables, FL, 33134, USA, or email info@colosa.com.
@@ -26,20 +27,23 @@
/** /**
* Phing Class Wrapper * Phing Class Wrapper
*
* @author Erik Amaru Ortiz <erik@colosa.com> * @author Erik Amaru Ortiz <erik@colosa.com>
*/ */
include_once 'phing/Phing.php'; include_once 'phing/Phing.php';
set_include_path(PATH_THIRDPARTY . 'propel-generator/classes/' . PATH_SEPARATOR . get_include_path()); set_include_path( PATH_THIRDPARTY . 'propel-generator/classes/' . PATH_SEPARATOR . get_include_path() );
if (!class_exists('Phing')) { if (! class_exists( 'Phing' )) {
throw new Exception('Fatal Error: Phing is not loaded!'); throw new Exception( 'Fatal Error: Phing is not loaded!' );
} }
class pmPhing extends Phing class pmPhing extends Phing
{ {
function getPhingVersion()
{ public function getPhingVersion ()
return 'pmPhing Ver 1.0'; {
} return 'pmPhing Ver 1.0';
} }
}