code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
Before the element. <?php echo $this->element('html_call'); ?> After the element.
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/html/nested_element.ctp
PHP
gpl3
81
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.elements.email.html * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <?php $content = explode("\n", $content); foreach($content as $line): echo '<p> ' . $line . '</p>'; endforeach; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/html/default.ctp
PHP
gpl3
750
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake.libs.view.templates.elements.email.html * @since CakePHP(tm) v 0.10.0.1076 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> <p>Here is your value: <b><?php echo $value; ?></b></p>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/html/custom.ctp
PHP
gpl3
826
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.elements.email.text * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> This element has some text that is just too wide to comply with email standards. <?php echo $content; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/text/wide.ctp
PHP
gpl3
738
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.elements.email.text * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <?php echo $content; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/text/default.ctp
PHP
gpl3
657
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.pages * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> Right now: <?php echo $this->Time->toAtom($time); ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/text/custom_helper.ctp
PHP
gpl3
665
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake.libs.view.templates.elements.email.text * @since CakePHP(tm) v 0.10.0.1076 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> Here is your value: <?php echo $value; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Emails/text/custom.ctp
PHP
gpl3
812
<?php echo $scripts_for_layout; ?> <script type="text/javascript"><?php echo $content_for_layout; ?></script>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/js/default.ctp
PHP
gpl3
109
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <?php echo $content_for_layout; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/ajax.ctp
PHP
gpl3
656
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <p>This is regular text</p> <!--nocache--> <p>A. Layout Before Content</p> <?php $this->log('1. layout before content') ?> <!--/nocache--> <!--nocache--><?php echo $this->element('nocache/plain'); ?><!--/nocache--> <!--nocache--> <p>C. Layout After Test Element But Before Content</p> <?php $this->log('3. layout after test element but before content') ?> <!--/nocache--> <?php echo $content_for_layout; ?> <!--nocache--> <p>E. Layout After Content</p> <?php $this->log('5. layout after content') ?> <!--/nocache--> <p>Additional regular text.</p> <?php //echo $this->element('nocache/contains_nocache'); stub?> <!--nocache--> <p>G. Layout After Content And After Element With No Cache Tags</p> <?php $this->log('7. layout after content and after element with no cache tags') ?> <!--/nocache-->
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/multi_cache.ctp
PHP
gpl3
1,425
<?php echo '<?xml version="1.0" encoding="' . Configure::read('App.encoding') . '"?>'; ?> <?php echo $content_for_layout; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/xml/default.ctp
PHP
gpl3
125
<!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> <title><?php echo $title_for_layout; ?></title> <!--nocache--><?php $x = 1; ?><!--/nocache--> </head> <body> <!--nocache--><?php $x++; ?><!--/nocache--> <!--nocache--><?php $x++; ?><!--/nocache--> <?php echo $content_for_layout; ?> <!--nocache--><?php echo 'cached count is: ' . $x; ?><!--/nocache--> </body> </html>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/cache_empty_sections.ctp
PHP
gpl3
495
<?php echo $content_for_layout; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/json/default.ctp
PHP
gpl3
34
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.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> <title><?php echo $page_title?></title> <?php echo $this->Html->charset(); ?> <?php if (Configure::read('debug') == 0) { ?> <meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/> <?php } ?> <style><!-- P { text-align:center; font:bold 1.1em sans-serif } A { color:#444; text-decoration:none } A:HOVER { text-decoration: underline; color:#44E } --></style> </head> <body> <p><a href="<?php echo $url?>"><?php echo $message?></a></p> </body> </html>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/flash.ctp
PHP
gpl3
1,269
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ $this->loadHelper('Html'); $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework'); ?> <!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> <?php echo $this->Html->charset(); ?> <title> <?php echo $cakeDescription ?>: <?php echo $title_for_layout; ?> </title> <?php echo $this->Html->meta('icon'); echo $this->Html->css('cake.generic'); echo $scripts_for_layout; ?> </head> <body> <div id="container"> <div id="header"> <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1> </div> <div id="content"> <?php echo $content_for_layout; ?> </div> <div id="footer"> <?php echo $this->Html->link( $this->Html->image('cake.power.gif', array('alt'=> $cakeDescription, 'border' => '0')), 'http://www.cakephp.org/', array('target' => '_blank', 'escape' => false) ); ?> </div> </div> </body> </html>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/default.ctp
PHP
gpl3
1,646
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts.email.html * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title><?php echo $title_for_layout;?></title> </head> <body> <?php echo $content_for_layout;?> <p>This email was sent using the CakePHP Framework</p> </body> </html>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/Emails/html/thin.ctp
PHP
gpl3
870
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts.email.html * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title><?php echo $title_for_layout;?></title> </head> <body> <?php echo $content_for_layout;?> <p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p> </body> </html>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/Emails/html/default.ctp
PHP
gpl3
903
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts.email.text * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <?php echo $content_for_layout;?> This email was sent using the CakePHP Framework, http://cakephp.org.
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/Emails/text/default.ctp
PHP
gpl3
737
<?php /* SVN FILE: $Id: ajax2.ctp 7062 2008-05-30 11:29:53Z nate $ */ /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> Ajax! <?php echo $content_for_layout; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/ajax2.ctp
PHP
gpl3
727
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake.libs.view.templates.layouts * @since CakePHP(tm) v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <p>This is regular text</p> <!--nocache--> <?php echo microtime(); ?> <!--/nocache--> <?php echo $content_for_layout; ?> <?php echo $superman; ?> <!--nocache--> <?php echo $variable; ?> <!--/nocache--> <p>Additional regular text.</p>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/cache_layout.ctp
PHP
gpl3
860
<?php echo $rss->header(); if (!isset($channel)) { $channel = array(); } if (!isset($channel['title'])) { $channel['title'] = $title_for_layout; } echo $rss->document( $rss->channel( array(), $channel, $content_for_layout ) ); ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Layouts/rss/default.ctp
PHP
gpl3
238
This is the TestsAppsController index view
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/TestsApps/index.ctp
PHP
gpl3
42
{"cakephp":"cool"}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/TestsApps/json/index.ctp
PHP
gpl3
18
<div id="notificationLayout"> <h1><?php echo $name; ?></h1> <h3><?php echo $title; ?></h3> <p><?php echo $message; ?></p> </div>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/session_helper.ctp
PHP
gpl3
131
<h2>Cache Me</h2> <p>B. In Plain Element</p> <?php $this->log('2. in plain element') ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/nocache/plain.ctp
PHP
gpl3
91
<?php echo $this->element('nocache/sub2'); ?> <!--nocache--> <?php $foobar = 'in sub1'; ?> <?php echo $foobar; ?> <!--/nocache--> <?php echo 'printing: "' . $foobar . '"'; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/nocache/sub1.ctp
PHP
gpl3
178
<h2>Cache Me</h2> <!--nocache--> <p>F. In Element With No Cache Tags</p> <?php $this->log('6. In element with no cache tags') ?> <!--/nocache-->
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/nocache/contains_nocache.ctp
PHP
gpl3
147
<!--nocache--> <?php $barfoo = 'in sub2'; ?> <?php echo $barfoo; ?> <!--/nocache--> <?php echo 'printing: "' . $barfoo . '"'; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/nocache/sub2.ctp
PHP
gpl3
131
<?php echo gettype($form); ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/type_check.ctp
PHP
gpl3
29
<?php echo 'this is the test element'; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/test_element.ctp
PHP
gpl3
41
<?php echo $this->Html->link('Test', 'http://example.com'); ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Elements/html_call.ctp
PHP
gpl3
62
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.View.Helper * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::uses('Helper', 'View'); class BananaHelper extends Helper { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/View/Helper/BananaHelper.php
PHP
gpl3
678
Into TestPlugin.
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Emails/text/test_plugin_tpl.ctp
PHP
gpl3
17
test plugin default layout
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Layouts/default.ctp
PHP
gpl3
26
<?php echo $content_for_layout; ?> This email was sent using the TestPlugin.
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Layouts/Emails/text/plug_default.ctp
PHP
gpl3
79
<?php echo 'this is the plugin element using params[plugin]'; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Elements/plugin_element.ctp
PHP
gpl3
64
<?php echo 'this is the test set using View::$plugin plugin element'; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Elements/test_plugin_element.ctp
PHP
gpl3
72
<?php __('This is a translatable string'); ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Elements/translate.ctp
PHP
gpl3
45
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class PluggedHelperHelper extends AppHelper { public $helpers = array('TestPlugin.OtherHelper'); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php
PHP
gpl3
784
<?php class TestPluginAppHelper extends AppHelper { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php
PHP
gpl3
56
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::uses('AppHelper', 'View/Helper'); class OtherHelperHelper extends AppHelper {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php
PHP
gpl3
768
test plugin index
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Tests/index.ctp
PHP
gpl3
17
test_plugin add/edit scaffold view
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Tests/scaffold.form.ctp
PHP
gpl3
34
alert("Test App");
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/webroot/js/test_plugin/test.js
JavaScript
gpl3
18
alert('I am a root level file!');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/webroot/root.js
JavaScript
gpl3
33
this is the test plugin asset css file
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/webroot/css/test_plugin_asset.css
CSS
gpl3
38
<?php /** * Test Suite TestPlugin AppController * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginAppController extends AppController { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php
PHP
gpl3
747
<?php /** * TestPluginController used by Dispatcher test to test plugin shortcut urls. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginController extends TestPluginAppController { public $uses = array(); public function index() { $this->autoRender = false; } public function add() { $this->autoRender = false; } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php
PHP
gpl3
930
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestsController extends TestPluginAppController { public $name = 'Tests'; public $uses = array(); public $helpers = array('TestPlugin.OtherHelper', 'Html'); public $components = array('TestPlugin.PluginsComponent'); public function index() { $this->set('test_value', 'It is a variable'); } public function some_method() { return 25; } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php
PHP
gpl3
1,040
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class OtherComponentComponent extends Object { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/other_component.php
PHP
gpl3
742
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginOtherComponentComponent extends Object { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/test_plugin_other_component.php
PHP
gpl3
752
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginComponentComponent extends Object { public $components = array('TestPlugin.TestPluginOtherComponent'); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/test_plugin_component.php
PHP
gpl3
815
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class PluginsComponentComponent extends Component { public $components = array('TestPlugin.OtherComponent'); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/plugins_component.php
PHP
gpl3
805
<?php /** * Test Suite TestPlugin Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginLibrary {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/test_plugin_library.php
PHP
gpl3
705
<?php /** * Test Suite CustomLibClass Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Custom.Package * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class CustomLibClass {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php
PHP
gpl3
721
<?php /** * Test Suite Test Plugin Cache Engine class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Cache.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginCacheEngine extends CacheEngine { public function write($key, $value, $duration) { } public function read($key) { } public function increment($key, $offset = 1) { } public function decrement($key, $offset = 1) { } public function delete($key) { } public function clear($check) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php
PHP
gpl3
1,010
<?php /** * Exception Renderer * * Provides Exception rendering features. Which allow exceptions to be rendered * as HTML pages. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Error * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::uses('ExceptionRenderer', 'Error'); class TestPluginExceptionRenderer extends ExceptionRenderer { /** * Renders the response for the exception. * * @return void */ public function render() { echo 'Rendered by test plugin'; } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Error/TestPluginExceptionRenderer.php
PHP
gpl3
992
<?php /** * Test Suite Test Plugin Logging stream class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Log.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginLog implements CakeLogInterface { public function write($type, $message) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php
PHP
gpl3
798
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class ExampleShell extends Shell { /** * main method * * @return void */ public function main() { $this->out('This is the main method called from TestPlugin.ExampleShell'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php
PHP
gpl3
874
<?php /** * Testing task in a plugin * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command.Task * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class OtherTaskTask extends Shell { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php
PHP
gpl3
722
<?php Configure::write('CakePluginTest.test_plugin.routes', 'loaded plugin routes');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/routes.php
PHP
gpl3
84
<?php /** * Test Suite TestPlugin config file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Config * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ $config['plugin_more_load'] = '/test_app/plugins/test_plugin/config/more.load.php';
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php
PHP
gpl3
781
<?php Configure::write('CakePluginTest.test_plugin.custom', 'loaded plugin custom config');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/custom_config.php
PHP
gpl3
91
<?php Configure::write('CakePluginTest.test_plugin.bootstrap', 'loaded plugin bootstrap');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/bootstrap.php
PHP
gpl3
90
<?php /** * TestAppSchema file * * Use for testing the loading of schema files from plugins. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Plugin.TestPlugin.Config.Schema * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginAppSchema extends CakeSchema { public $name = 'TestPluginApp'; public $test_plugin_acos = array( 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), 'model' => array('type'=>'string', 'null' => true), 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), 'alias' => array('type'=>'string', 'null' => true), 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/Schema/schema.php
PHP
gpl3
1,495
<?php /** * Test Suite TestPlugin config file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Config * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ $config['plugin_load'] = '/test_app/plugins/test_plugin/config/load.php';
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
PHP
gpl3
771
<?php /** * Test Plugin Post Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP v 1.2.0.4487 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginPost extends TestPluginAppModel { /** * Name property * * @var string */ public $name = 'Post'; /** * useTable property * * @var string */ public $useTable = 'posts'; /** * Validation rules * * @var array */ public $validate = array( 'title' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, 'message' => 'Post title is required' ), 'body' => array( 'first_rule' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, 'message' => 'Post body is required' ), 'Post body is super required' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, ) ), ); /** * Translation domain to use for validation messages * * @var string */ public $validationDomain = 'test_plugin'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginPost.php
PHP
gpl3
1,462
<?php /** * Test Plugin Auth User Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP v 1.2.0.4487 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginAuthUser extends TestPluginAppModel { /** * Name property * * @var string */ public $name = 'TestPluginAuthUser'; /** * useTable property * * @var string */ public $useTable = 'auth_users'; /** * useDbConfig property * * @var string 'test' */ public $useDbConfig = 'test'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/test_plugin_auth_user.php
PHP
gpl3
907
<?php /* SVN FILE: $Id$ */ /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. * * @package Cake.Test.test_app.Plugin.TestPlugin.Model.Behavior */ class TestPluginPersisterTwoBehavior extends ModelBehavior { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Behavior/test_plugin_persister_two.php
PHP
gpl3
1,194
<?php /* SVN FILE: $Id$ */ /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. * * @package Cake.Test.test_app.Plugin.TestPlugin.Model.Behavior */ class TestPluginPersisterOneBehavior extends ModelBehavior { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Behavior/test_plugin_persister_one.php
PHP
gpl3
1,194
<?php /** * Test suite plugin session handler */ class TestPluginSession implements CakeSessionHandlerInterface { public function open() { return true; } public function close() { } public function read($id) { } public function write($id, $data) { } public function destroy($id) { } public function gc($expires = null) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php
PHP
gpl3
361
<?php class TestDriver extends TestSource { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Database/TestDriver.php
PHP
gpl3
46
<?php App::uses('DboSource', 'Model/Datasource'); class DboDummy extends DboSource { public function connect() { return true; } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Database/DboDummy.php
PHP
gpl3
134
<?php App::uses('DataSource', 'Model/Datasource'); class TestSource extends DataSource { public function describe($model) { return compact('model'); } public function listSources() { return array('test_source'); } public function create($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function read($model, $queryData = array()) { return compact('model', 'queryData'); } public function update($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function delete($model, $id) { return compact('model', 'id'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/TestSource.php
PHP
gpl3
647
<?php class TestOtherSource extends DataSource { public function describe($model) { return compact('model'); } public function listSources() { return array('test_source'); } public function create($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function read($model, $queryData = array()) { return compact('model', 'queryData'); } public function update($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function delete($model, $id) { return compact('model', 'id'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/test_other_source.php
PHP
gpl3
606
<?php /** * Test Suite TestPlugin AppModel * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestPluginAppModel extends CakeTestModel {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/test_plugin_app_model.php
PHP
gpl3
731
<?php /* SVN FILE: $Id$ */ /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakefoundation.org/projects/info/cakephp CakePHP Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP v 1.2.0.7726 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ class TestPluginAuthors extends TestPluginAppModel { public $useTable = 'authors'; public $name = 'TestPluginAuthors'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/test_plugin_authors.php
PHP
gpl3
856
<?php /* SVN FILE: $Id$ */ /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakefoundation.org/projects/info/cakephp CakePHP Project * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP v 1.2.0.7726 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ class TestPluginComment extends TestPluginAppModel { public $useTable = 'test_plugin_comments'; public $name = 'TestPluginComment'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/test_plugin_comment.php
PHP
gpl3
869
alert('win sauce');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/PluginJs/webroot/js/plugin_js.js
JavaScript
gpl3
19
alert('plugin one nested js file');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/PluginJs/webroot/js/one/plugin_one.js
JavaScript
gpl3
35
<?php Configure::write('CakePluginTest.js_plugin.bootstrap', 'loaded js plugin bootstrap');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/PluginJs/Config/bootstrap.php
PHP
gpl3
91
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class ExampleShell extends Shell { /** * main method * * @return void */ public function main() { $this->out('This is the main method called from TestPluginTwo.ExampleShell'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php
PHP
gpl3
880
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class WelcomeShell extends Shell { /** * say_hello method * * @return void */ public function say_hello() { $this->out('This is the say_hello method called from TestPluginTwo.WelcomeShell'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php
PHP
gpl3
895
<?php Configure::write('CakePluginTest.test_plugin_two.bootstrap', 'loaded plugin two bootstrap');
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Config/bootstrap.php
PHP
gpl3
98
override the theme webroot css file
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/webroot/theme/test_theme/css/theme_webroot.css
CSS
gpl3
35
this is the webroot test asset css file
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/webroot/theme/test_theme/css/webroot_test.css
CSS
gpl3
39
<?php /** * TestsAppsPostsController file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestsAppsPostsController extends AppController { public $name = 'TestsAppsPosts'; public $uses = array('Post'); public $viewPath = 'TestsApps'; public function add() { $data = array( 'Post' => array( 'title' => 'Test article', 'body' => 'Body of article.', 'author_id' => 1 ) ); $this->Post->save($data); $this->set('posts', $this->Post->find('all')); $this->render('index'); } /** * check url params * */ public function url_var() { $this->set('params', $this->request->params); $this->render('index'); } /** * post var testing * */ public function post_var() { $this->set('data', $this->request->data); $this->render('index'); } /** * Fixturized action for testAction() * */ public function fixtured() { $this->set('posts', $this->Post->find('all')); $this->render('index'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php
PHP
gpl3
1,520
<?php /** * TestsAppsController file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestsAppsController extends AppController { public $name = 'TestsApps'; public $uses = array(); public function index() { } public function some_method() { return 5; } public function set_action() { $this->set('var', 'string'); $this->render('index'); } public function redirect_to() { $this->redirect('http://cakephp.org'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Controller/TestsAppsController.php
PHP
gpl3
1,019
<?php /** * Test Suite TestUtilityClass Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Utility * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestUtilityClass {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php
PHP
gpl3
693
<?php /** * Test Suite Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Lib * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class Library {}
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Lib/Library.php
PHP
gpl3
659
<?php /** * Test Suite Test App Cache Engine class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Cache.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TestAppCacheEngine extends CacheEngine { public function write($key, $value, $duration) { if ($key == 'fail') { return false; } } public function read($key) { } public function increment($key, $offset = 1) { } public function decrement($key, $offset = 1) { } public function delete($key) { } public function clear($check) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php
PHP
gpl3
1,031
<?php /** * Test Suite Test App Logging stream class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Log.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::uses('CakeLogInterface', 'Log'); class TestAppLog implements CakeLogInterface { public function write($type, $message) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php
PHP
gpl3
814
<?php /** * SampleShell file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.test_app.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class SampleShell extends Shell { /** * main method * * @return void */ public function main() { $this->out('This is the main method called from SampleShell'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Console/Command/SampleShell.php
PHP
gpl3
832
I got rendered <?php echo $test; ?>
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Console/Templates/test/classes/test_object.ctp
PHP
gpl3
35
<?php /** * Routes file * * Routes for test app * * PHP versions 4 and 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Config * @since CakePHP v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ Router::parseExtensions('json'); Router::connect('/some_alias', array('controller' => 'tests_apps', 'action' => 'some_method')); Router::redirect('/redirect_me_now', 'http://cakephp.org'); Router::redirect('/redirect_me', array('controller' => 'tests_apps', 'action' => 'some_method'));
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/routes.php
PHP
gpl3
879
<?php $config = array( 'Read' => 'value2', 'Deep' => array( 'Second' => array( 'SecondDeepest' => 'buried2' ) ) );
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/var_test2.php
PHP
gpl3
124
;<?php exit() ?> ; SVN FILE: $Id$ ;/** ; * Test App Ini Based Acl Config File ; * ; * ; * PHP 5 ; * ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) ; * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) ; * ; * Licensed under The MIT License ; * Redistributions of files must retain the above copyright notice. ; * ; * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) ; * @link http://cakephp.org CakePHP(tm) Project ;; * @package Cake.Test.test_app.Config ; * @since CakePHP(tm) v 0.10.0.1076 ; * @license MIT License (http://www.opensource.org/licenses/mit-license.php) ; */ ;------------------------------------- ;Users ;------------------------------------- [admin] groups = administrators allow = deny = ads [paul] groups = users allow = deny = [jenny] groups = users allow = ads deny = images, files [nobody] groups = anonymous allow = deny = ;------------------------------------- ;Groups ;------------------------------------- [administrators] deny = allow = posts, comments, images, files, stats, ads [users] allow = posts, comments, images, files deny = stats, ads [anonymous] allow = deny = posts, comments, images, files, stats, ads
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/acl.ini.php
PHP
gpl3
1,279
<?php $config = array( 'tags' => array( 'form' => 'start form', 'formend' => 'finish form' ) );
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/htmlhelper_tags.php
PHP
gpl3
102
<?php $config = array( 'Read' => 'value', 'Deep' => array( 'Deeper' => array( 'Deepest' => 'buried' ) ) );
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/var_test.php
PHP
gpl3
116
<?php //do nothing this is an empty file.
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Config/empty.php
PHP
gpl3
41