예제 #1
0
 function httpRequestValidator()
 {
     if (!isset($GLOBALS["debugMode"])) {
         $GLOBALS["debugMode"] = false;
     }
     $this->errors = ErrorManager::getInstance();
 }
예제 #2
0
 public function CRUDManager($bindings, $roleBindings)
 {
     $this->bindings = $bindings;
     $this->roleBindings = $roleBindings;
     $this->validator = new httpRequestValidator('CRUDManager');
     $this->connection = Doctrine_Manager::connection();
     $this->errors = ErrorManager::getInstance();
 }
예제 #3
0
 public function InfoManager($bindings, $roleBindings)
 {
     $this->bindings = $bindings;
     $this->roleBindings = $roleBindings;
     $this->templateManager = new TemplateManager($bindings);
     $this->user = $_SESSION['user'];
     $this->errors = ErrorManager::getInstance();
 }
예제 #4
0
/**
 * Copyright (C) 2008-2012 Ulteo SAS
 * http://www.ulteo.com
 * Author Laurent CLOUET <*****@*****.**> 2008-2010
 * Author Jeremy DESVAGES <*****@*****.**> 2008-2010
 * Author Julien LANGLOIS <*****@*****.**> 2011, 2012
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 **/
function die_error($error_ = false, $file_ = NULL, $line_ = NULL, $display_ = false)
{
    $errorManager = ErrorManager::getInstance();
    $errorManager->perform($error_, $file_, $line_, $display_);
}
예제 #5
0
 public function __construct()
 {
     $this->errorManager = ErrorManager::getInstance();
 }
예제 #6
0
 public function TemplateManager($bindings)
 {
     $this->bindings = $bindings;
     $this->errors = ErrorManager::getInstance();
 }
예제 #7
0
    }
    ?>
	</ul>

	<h3>Everything's OK</h3>


<?php 
} catch (Exception $e) {
    // <<<<-------------- catch
    ?>

	<h3>There are errors!</h3>
	<ul>
	<?php 
    foreach (ErrorManager::getInstance()->getErrors() as $error) {
        ?>

		<li><?php 
        echo $error["message"];
        ?>
</li>	

	<?php 
    }
    ?>
			
	</ul>

<?php 
}
/**
 * Link Platform
 *
 * PHP Version 5.4
 *
 * @category  Foundation
 * @author    johnnyeven <*****@*****.**>
 * @copyright 2015 Chinaway ltd.
 * @version   Alpha: $Id
 * @link
 */
namespace Controllers\Account;

if (!defined('OPERATIONPHP')) {
    ErrorManager::getInstance()->throwException(10001);
}
use Extend\Library\NoticeAdapter\NoticeAdapter;
use Foundation\Controller;
use Foundation\Support\ErrorManager;
use Foundation\Support\Facades\Input;
use Foundation\Support\Facades\Loader;
use Foundation\Support\Facades\Request;
use Foundation\Support\Facades\Response;
use Foundation\Support\Facades\View;
use Models\Account;
class AccountController extends Controller
{
    /**
     * @var \Foundation\Library\Validation
     */