code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
?>
</body>
... | PHP |
<div class="hero-unit">
<h1><?php echo $title; ?></h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a class="btn btn-primary btn-large... | PHP |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
?>
<div class="ink-gutter">
<div class="ink-l100 ink-m100 ink-s100">
<div class="ink-l40 ink-m40 ink-s40">
<form class="ink-form block" method="post" action="<?php echo site_url('login/process')?>">
<fieldset>
... | PHP |
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#"><?php echo $title; ?></a>
<ul class="nav">
<?php foreach($items as $item): ?>
<li><a href="#<?php echo $item; ?>"><?php echo $item; ?></a></li>
<?ph... | PHP |
<!doctype html>
<html>
<head>
<title><?php echo $this->template->title->default("Default title"); ?></title>
<meta charset="utf-8">
<meta name="description" content="<?php echo $this->template->description; ?>">
<meta name="author" content="">
<?php echo $this->template->meta; ?>
<?php e... | PHP |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $this->template->title->default("My InK Page"); ?></title>
<meta name=... | PHP |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Database Error</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px... | PHP |
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 Page Not Found</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: ... | PHP |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Error</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: ... | PHP |
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
</div> | PHP |
<?php
/*
* Demo widget
*/
class Navigation extends Widget {
public function display($data) {
if (!isset($data['items'])) {
$data['items'] = array('Home', 'About', 'Contact');
}
$this->view('widgets/navigation', $data);
}
} | PHP |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of logout
*
* @author Archangle Queue
*/
class logout extends CI_Controller {
public function __construct() {
... | PHP |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of login
*
* @author Queue
*/
class login extends CI_Controller {
/**
* Login Username
*... | PHP |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Welcome extends CI_Controller {
public function __construct() {
parent::__construct();
}
public function index() {
// Set the title
$this->template->title = 'Welcome!';
//... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conver... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Age... | PHP |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default but should be enabled ... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| SMILEYS
| -------------------------------------------------------------------
| This file contains an array of smileys for use with the emoticon helper.
| Individual ima... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to help i... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep t... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Pro... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Template configuration
|--------------------------------------------------------------------------
| This file will contain the settings for the template libr... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
... | PHP |
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging an... | PHP |
<?php
spl_autoload_register(array('Asar', 'loadClass'));
if (!class_exists('Asar_Base', false)) {
require_once 'Asar/Base.php';
}
class Asar {
private static $version = '0.0.1pa';
private static $asarpath = NULL;
private static $instance = NULL;
private static $apps = array();
... | PHP |
<?php
/**
* @todo: cookies and sessions
*/
require_once 'Asar.php';
class Asar_Request extends Asar_Message {
private $uri = NULL;
private $method = NULL;
const GET = 'GET';
const POST = 'POST';
const PUT = 'PUT';
const DELETE = 'DELETE';
function setUri($uri)... | PHP |
<?php
/**
* @todo: Application, Controller, & Action names validation
*/
require_once 'Asar.php';
abstract class Asar_Message extends Asar_Base {
private $address = NULL;
private $contents = NULL;
private $params = array();
private $type = NULL;
private $headers = array();
p... | PHP |
<?php
/**
* @todo: This class may be following the anti-pattern "BaseBean". Refactor to move methods in different classes?
*
*/
class Asar_Base {
/*
protected static $attr_reader = NULL;
protected static $attr_writer = array();
protected static $attr_accessor = array();
function __cal... | PHP |
<?php
/**
* Asar_File
* A wrapper class for simplifying file creation and access
*
*
*
* EXAMPLE - File Creation
* The following code creates a file named 'filename.ext'
* with the content 'Hello World!' and saves it.
*
* Asar_File::create('filename.ext')->write('Hello World!')->save();
*
* The foll... | PHP |
<?php
require_once 'Asar.php';
class Asar_Client extends Asar_Base {
private $app = NULL;
private $name = NULL;
function createRequest($uri = '', $arguments = NULL) {
$req = new Asar_Request();
$req->setUri($uri);
if (is_array($arguments)) {
if (array_key_exis... | PHP |
<?php
/**
* @todo: Application, Controller, & Action names validation
*/
require_once 'Asar.php';
class Asar_Response extends Asar_Message {
private $status_code = NULL;
function setStatusCode($code) {
// Check code against bounds
if ($code >= 100 && $code <= 599) {
$this->status_code = $cod... | PHP |
<?php
/**
* Created on Jun 21, 2007
*
* @author Wayne Duran
*/
class Asar_Utility_RandomStringGenerator {
private static $instance;
private static $characters = array();
private static $lower_a_start;
private static $lower_a_end;
private static $upper_a_start;
private static $upper_a_end;
private sta... | PHP |
<?php
require_once 'Asar.php';
abstract class Asar_Controller extends Asar_Base implements Asar_Requestable {
protected $response = NULL; // Stores the current response object for the controller
protected $request = NULL; // The request object passed to controller
protected $reflection = NULL; // This i... | PHP |
<?php
/**
* Created on Aug 20, 2007
*
* @author Wayne Duran
*/
require_once 'Asar.php';
class Asar_Router extends Asar_Base implements Asar_Requestable {
private $rules = array();
private $default_instruction = array('controller', 'action');
protected static $instance = NULL; // For Singleton
... | PHP |
<?php
class Asar_Template_Renderer extends Asar_Base {
private $template_params = array();
function setTemplateParams(array $params) {
$this->template_params = $params;
}
function getTemplateParams() {
return $this->template_params;
}
}
?> | PHP |
<?php
require_once 'Asar.php';
abstract class Asar_Application extends Asar_Base implements Asar_Requestable {
protected $router;
/*
private static $instance = NULL;
static function instance() {
if (self::$instance == NULL ) {
self::$instance = new self();
}
return self::$instanc... | PHP |
<?php
class Asar_Template implements ArrayAccess {
protected $vars = array(); // Holds all the template variables
protected $path; // Path to the templates
protected $template_file; // Template file to use
private static $helpers = array();
private static $helper_methods = array();
public function __construct... | PHP |
<?php
interface Asar_Respondable {
function processResponse(Asar_Response $response, array $arguments = NULL);
}
?>
| PHP |
<?php
interface Asar_Requestable {
function processRequest(Asar_Request $request, array $arguments = NULL);
}
?>
| PHP |
<?php
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
class AllUnitTests
{
private static $_suite = null;
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
... | PHP |
<?php
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
class AllTests
{
private static $_suite = null;
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
... | PHP |
<?php
/**
* Asar arch-class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-licen... | PHP |
<?php
/**
* @todo cookies and sessions
*/
require_once 'Asar.php';
class Asar_Request extends Asar_Message {
private $path = NULL;
private $path_array = array();
private $method = NULL;
private $host = NULL;
private $uri_scheme = NULL;
private $uri_authority = NULL;
... | PHP |
<?php
/**
* @todo Application, Controller, & Action names validation
*/
require_once 'Asar.php';
abstract class Asar_Message extends Asar_Base {
private $address = null;
private $contents = null;
private $params = array();
private $type = null;
private $headers = array();
private ... | PHP |
<?php
/**
* @todo This class may be following the anti-pattern "BaseBean". Refactor to move methods in different classes?
*
*/
abstract class Asar_Base {
public function exception($msg) {
Asar::exception($this, $msg);
}
public function debug($title, $msg) {
Asar::... | PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><? if($this['title']): echo $this['title'], ' - '; endif;?>Asar Web Fr... | PHP |
<h1><?=$heading?></h1>
<div id="asar_main_content">
<?=$message?>
</div> | PHP |
<?php
abstract class Asar_Filter_Common {
static function filterResponse(Asar_Response $response) {
if ($response->getMimeType() == 'text/html' && Asar::MODE_DEVELOPMENT == Asar::getMode()) {
$debug = <<<DEBUGHEAD
<div id="asar_debug">
<h1>Asar Debugging Information</h1>
<tabl... | PHP |
<?php
/**
* Asar_Client_Default_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/license... | PHP |
<?php
class Asar_Client_Default extends Asar_Client {
function createRequest($arguments = null) {
$request = parent::createRequest(
array(
'authority' => $_SERVER['SERVER_NAME'],
'scheme' => 'http',
'path' => $this->getUriFromServerVars(),
'method' => $_SERVER['REQUEST_METHOD'... | PHP |
<?php
/**
* Asar_Client_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-li... | PHP |
<?php
/**
* A wrapper class for simplifying file creation and access
*
* EXAMPLE - File Creation
* The following code creates a file named 'filename.ext'
* with the content 'Hello World!' and saves it.
*
* Asar_File::create('filename.ext')->write('Hello World!')->save();
*
* The following code creates a ... | PHP |
<?php
class Asar_Client extends Asar_Base {
private $name = NULL;
protected $request = NULL;
protected $response = NULL;
function createRequest($arguments = NULL) {
$req = new Asar_Request();
if (is_array($arguments)) {
$req->setUriAuthority($arguments['authority']);
$req->setUriScheme... | PHP |
<?php
/**
* @todo Application, Controller, & Action names validation
*/
require_once 'Asar.php';
class Asar_Response extends Asar_Message {
private $status_code = 200;
function setStatus($code) {
// Check code against bounds
if ($code >= 100 && $code <= 599) {
$this->status_code = $code;
} else ... | PHP |
<?php
/**
* Created on Jun 21, 2007
*
* @author Wayne Duran
*/
class Asar_Utility_RandomStringGenerator {
private static $instance;
private static $characters = array();
private static $lower_a_start;
private static $lower_a_end;
private static $upper_a_start;
private static $upper_a_end;
private sta... | PHP |
<?php
#require_once 'Asar/File.php';
/**
* Helper class for Asar Framework Tests
*
* This class provides methods to help with tests. Some of these are:
* - Creating and cleaning up dummy files
* - assertStringContains
*
* @package asar-web-framework
* @todo Make exceptions friendly
**/
abstract class Asar_Te... | PHP |
<?php
/**
* Asar_Controller class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-license.... | PHP |
<?php
/**
* Asar_Template_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-... | PHP |
<?php
/**
* Html Template Class
*
* This template is called whenever an HTML representation
* is needed for a certain resources. Use this to create
* HTML-based templates
*
**/
class Asar_Template_Html extends Asar_Template
{
private $layout_path = null;
private $layout = null;
/**
*... | PHP |
<?php
abstract class Asar_Application extends Asar_Request_Handler {
private $root_controller = null;
function __construct() {
$root_controller_class_name = $this->getAppName().'_Controller_Index';
try {
$this->root_controller = Asar::instantiate($root_controller_class_... | PHP |
<?php
/**
* Asar_Response_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-... | PHP |
<?php
class Asar_Template extends Asar_Base implements ArrayAccess {
protected $vars = array(); // Holds all the template variables
protected $path; // Path to the templates
protected $template_file; // Template file to use
protected $controller;
public function getPath() {
return $this->path;
}
public fu... | PHP |
<?php
/**
* Asar_Base_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-lice... | PHP |
<?php
abstract class Asar_Request_Handler extends Asar_Base implements Asar_Requestable {
final function handleRequest(Asar_Request $request, array $arguments = NULL) {
if (!empty($this->request_filters)) {
foreach($this->request_filters as $filter) {
call_user_func( $filte... | PHP |
<?php
/**
* Asar_Request_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-l... | PHP |
<?php
/**
* @todo The logic of this class needs a lot of rethinking and rethinking. It smells ugly.
*/
class Asar_Controller_Default extends Asar_Base implements Asar_Requestable {
function handleRequest(Asar_Request $request, array $arguments = NULL)
{
$this->response = $request->getContent();
$this->view ... | PHP |
<?php
/**
* Asar_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-license.p... | PHP |
<?php
/**
* Asar_Helper_String class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-licen... | PHP |
<?php
/**
* Asar_Helper_Html class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-license... | PHP |
<?php
/**
* Asar_Message_Exception class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-l... | PHP |
<?php
interface Asar_Requestable {
function handleRequest(Asar_Request $handler, array $arguments = NULL);
//function processResponse(Asar_Response $response);
}
| PHP |
<?php
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
class AllUnitTests
{
private static $_suite = null;
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
... | PHP |
<?php
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
class AllTests
{
private static $_suite = null;
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
... | PHP |
<?php
require_once 'Asar.php';
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(realpath(__FILE__))); | PHP |
<h1><?= $heading ?></h1>
<p><?= $content ?></p> | PHP |
============================
<?= $heading ?>
============================
<?= $content ?> | PHP |
<?php
/**
* Layout.html.php, Layout file for App
*
* @package functional_test_app
*/
?>
<html>
<head>
<title>Test Application</title>
</head>
<body>
<?= $contents ?>
</body>
</html> | PHP |
<?php
/**
* GET.html.php, HTML Template for Index controller GET
*
* @package functional_test_app
**/
?>
<h1><?= $greeting ?></h1> | PHP |
<?php
/**
* Test App Application Class
*
* This is the Application definition for the application application
* named 'App'. This test application is used only for integration
* testing.
*/
class App_Application extends Asar_Application
{
}
| PHP |
<?php
/**
* App_Controller_Index, Root controller for test Application
*
* @package functional_test_app
**/
class App_Controller_Subpage extends Asar_Controller
{
/**
* GET method
*
* @return void
**/
public function GET()
{
$this->view['heading'] = 'This is a test hea... | PHP |
<?php
/**
* App_Controller_Index, Root controller for test Application
*
* @package functional_test_app
**/
class App_Controller_Index extends Asar_Controller
{
protected $map = array(
'subpage' => 'Subpage',
'errors' => 'Errors'
);
/**
* GET method
*
* @return void
**/
... | PHP |
<?php
class App_Controller_Errors extends Asar_Controller
{
/**
* GET method
*
* @return void
**/
public function GET()
{
$this->response->setStatus(500);
}
} | PHP |
<?php
/**
* Asar arch-class definition - Asar Web Framework Core
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-licen... | PHP |
<?php
/**
* @todo cookies and sessions
*/
require_once 'Asar.php';
class Asar_Request extends Asar_Message {
private $path = NULL;
private $path_array = array();
private $method = NULL;
private $host = NULL;
private $uri_scheme = NULL;
private $uri_authority = NULL;
... | PHP |
<?php
/**
* @todo Application, Controller, & Action names validation
*/
require_once 'Asar.php';
abstract class Asar_Message extends Asar_Base {
private $address = null;
private $contents = null;
private $params = array();
private $type = null;
private $headers = array();
private ... | PHP |
<?php
/**
* @todo This class may be following the anti-pattern "BaseBean". Refactor to move methods in different classes?
*
*/
abstract class Asar_Base {
public function exception($msg) {
Asar::exception($this, $msg);
}
public function debug($title, $msg) {
Asar::... | PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><? if($this['title']): echo $this['title'], ' - '; endif;?>Asar Web Fr... | PHP |
<h1><?=$heading?></h1>
<div id="asar_main_content">
<?=$message?>
</div> | PHP |
<?php
abstract class Asar_Filter_Common {
static function filterResponse(Asar_Response $response) {
if ($response->getMimeType() == 'text/html' && Asar::MODE_DEVELOPMENT == Asar::getMode()) {
$debug = <<<DEBUGHEAD
<div id="asar_debug">
<h1>Asar Debugging Information</h1>
<tabl... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.