Skip to content

Commit

Permalink
Add the sanctioned vendors.
Browse files Browse the repository at this point in the history
  • Loading branch information
helgi committed Jul 26, 2011
1 parent 9a39eec commit 79dfccd
Show file tree
Hide file tree
Showing 57 changed files with 5,211 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0"?>
<pearconfig version="1.0"><php_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/php</php_dir><ext_dir>/usr/lib/php/extensions/no-debug-non-zts-20090626/</ext_dir><cfg_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/cfg</cfg_dir><doc_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/docs</doc_dir><bin_dir>/usr/local/bin</bin_dir><data_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/data</data_dir><www_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/www</www_dir><test_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/tests</test_dir><src_dir>/Users/helgi/projects/projects/github/pyrus/Pyrus_Developer/vendor/src</src_dir><php_bin>/usr/local/bin/php</php_bin><php_ini>/private/etc/php.ini</php_ini><php_prefix></php_prefix><php_suffix></php_suffix></pearconfig>
Binary file added vendor/.pear2registry
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd">
<name>PEAR2_Autoload</name>
<channel>pear2.php.net</channel>
<summary>Standard Autoloader for PEAR2
</summary>
<description>
PEAR2_Autoload is the standard method of class loading for
development and low-volume web sites using PEAR2 packages.

To use:

&lt;?php
require '/path/to/PEAR2/Autoload.php';
// Now use class names from installed PEAR2 packages at will

// You can also inclue other PEAR2 registries
// require '/other/pear2/repo/PEAR2/Autoload.php';
// or manually
// PEAR2\Autoload::initialize('/other/pear2/repo');
?&gt;</description>
<lead>
<name>Gregory Beaver</name>
<user>cellog</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<lead>
<name>Brett Bieber</name>
<user>saltybeagle</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<contributor>
<name>Clay Loveless</name>
<user>clay</user>
<email>[email protected]</email>
<active>yes</active>
</contributor>
<date>2011-07-26</date>
<time>19:42:30</time>
<version>
<release>0.2.4</release>
<api>0.1.0</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<notes>- Add optional dynamically-generated class map so full file paths can be
used when loading class files.

- Added a few test cases, along with non-Pyrus .phpt runner to keep us from
trying to load PEAR2\Autoload twice!

- Removed PEAR2\ prefix requirement for loaded classes. Now psr-0 compliant.
</notes>
<contents>
<dir name="/">
<file role="test" name="tests/_files/testDir1/Foo.php" md5sum="e8075b6cdd036d8ae6134821770e9817"/>
<file role="test" name="tests/run-tests.php.inc" md5sum="7af004ee44564dde57e918c31d84f89b"/>
<file role="test" name="tests/initialize_basic005.phpt" md5sum="58bdfd610216c7589d79c21fdaee7889"/>
<file role="test" name="tests/initialize_basic004.phpt" md5sum="be0a195507fc9b7c6144d6bf43b642e0"/>
<file role="test" name="tests/initialize_basic003.phpt" md5sum="c5a610c757aa78dba5d77c09cb7b6b19"/>
<file role="test" name="tests/initialize_basic002.phpt" md5sum="ab5beb98fd6fd944a6e86ae888c62262"/>
<file role="test" name="tests/initialize_basic001.phpt" md5sum="e1ac565c2fa6bfbe90c46d9cc0a650dd"/>
<file role="php" name="src/PEAR2/Autoload.php" md5sum="2c9cec6796e6625bd9994694296737be"/>
</dir>
</contents>
<dependencies>
<required>
<php>
<min>5.3.0</min>
</php>
<pearinstaller>
<min>2.0.0a1</min>
</pearinstaller>
</required>
</dependencies>
<phprelease/>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd" packagerversion="2.0.0">
<name>PEAR2_Templates_Savant</name>
<channel>pear2.php.net</channel>
<summary>Savant is a powerful but lightweight object-oriented template system for PHP.
</summary>
<description>
Unlike other template systems, Savant by default does not compile your
templates into PHP; instead, it uses PHP itself as its template language so you
don't need to learn a new markup system.</description>
<lead>
<name>Brett Bieber</name>
<user>saltybeagle</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<lead>
<name>Gregory Beaver</name>
<user>cellog</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2011-07-26</date>
<time>19:41:32</time>
<version>
<release>0.3.3</release>
<api>0.1.0</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<notes>Bugfix Release:

* Proxy array and ArrayObject objects through a new proxy class that supports all ArrayObject interfaces. [saltybeagle, gauthierm]


Package PEAR2_Templates_Savant API release notes for version 0.1.0.</notes>
<contents>
<dir name="/">
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/test_framework.php.inc" md5sum="77aef1992ba0e56a57ee0807ad3a6623"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/string.phpt" md5sum="fc5844e25f29f37eb12ecf4c76b2661e"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/object.phpt" md5sum="e0b47f2dd1e8553f7cadeb463b9eaf1b"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/Foo.tpl.php" md5sum="2af7ae28b4d35227c53921eaabfaeaad"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/fastcompile.phpt" md5sum="3757fae0e3ea16ece54fbe15a91103d6"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/echostring.tpl.php" md5sum="138231e0b170c36ff602c09eaaa1690f"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/render/array.phpt" md5sum="0cd835bfd4b6bb433d211a9bca42d7b2"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/globals/escape.phpt" md5sum="09da36f4e47d615c7bec72d24cb5763c"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/globals/escape.nestedarrays.phpt" md5sum="8a5e23d6d00003bd75f7b049d14f135d"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/globals/escape.arrays.phpt" md5sum="5e3169919a327ac2741a64ba228afbf0"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/globals/basic.tpl.php" md5sum="7898705f5a0a5792a191cca28501e22e"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/globals/basic.phpt" md5sum="1f36e8ae40c81c83c95efd20207bcf9c"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/escape/string.phpt" md5sum="b8c2702b9f60599dc5acfff2626dd9bd"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/escape/raw.tpl.php" md5sum="2e7b87c466f106a575d6740258356109"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/escape/object.phpt" md5sum="4fdd8b015fa348f0e5ae8994ef8290bb"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/escape/Foo.tpl.php" md5sum="d960fd1fa4867a04702db10cda65d772"/>
<file role="test" name="test/pear2.php.net/PEAR2_Templates_Savant/escape/echostring.tpl.php" md5sum="a45c7c6b67b56e43935d844f358f080b"/>
<file role="php" name="php/PEAR2/Templates/Savant/UnexpectedValueException.php" md5sum="6476d23be839fc97239e62845f998ae9"/>
<file role="php" name="php/PEAR2/Templates/Savant/TemplateException.php" md5sum="05a33f3f0f059f6c68758a576966a312"/>
<file role="php" name="php/PEAR2/Templates/Savant/ObjectProxy/Traversable.php" md5sum="263deb6dafcaba0e90f6553edf582686"/>
<file role="php" name="php/PEAR2/Templates/Savant/ObjectProxy/ArrayObject.php" md5sum="9970e7cb021df63a342717bcc439fcd7"/>
<file role="php" name="php/PEAR2/Templates/Savant/ObjectProxy/ArrayIterator.php" md5sum="df000f44d34065a8f63dfc3795b9a05d"/>
<file role="php" name="php/PEAR2/Templates/Savant/ObjectProxy/ArrayAccess.php" md5sum="6c4a19e0feb079de2e4dfc6983547b19"/>
<file role="php" name="php/PEAR2/Templates/Savant/ObjectProxy.php" md5sum="90399313311f3e65efd06dce154cd02d"/>
<file role="php" name="php/PEAR2/Templates/Savant/MapperInterface.php" md5sum="010c6059a851f2a89d4f4caa661ccf6f"/>
<file role="php" name="php/PEAR2/Templates/Savant/Main.php" md5sum="3c563f91c83b095b6d1c8e83405a6b79"/>
<file role="php" name="php/PEAR2/Templates/Savant/FilterAbstract.php" md5sum="295b75cc419ff9bf02afface4227fb3b"/>
<file role="php" name="php/PEAR2/Templates/Savant/FastCompilerInterface.php" md5sum="82c9f5ce0b400bb59556134b519a5332"/>
<file role="php" name="php/PEAR2/Templates/Savant/Exception.php" md5sum="95f8ee4d2ca3ab754005bb47cdb37272"/>
<file role="php" name="php/PEAR2/Templates/Savant/CompilerInterface.php" md5sum="20d3a4a581b1d2fbe8cb6e21a258afa3"/>
<file role="php" name="php/PEAR2/Templates/Savant/CompilerException.php" md5sum="a49fd3f55ab315d02df1aa50e8e3c717"/>
<file role="php" name="php/PEAR2/Templates/Savant/ClassToTemplateMapper.php" md5sum="49726b3a69cecb684529545413ca87d8"/>
<file role="php" name="php/PEAR2/Templates/Savant/BasicFastCompiler.php" md5sum="fa31c3640d048985bda4f2949a62d951"/>
<file role="php" name="php/PEAR2/Templates/Savant/BadMethodCallException.php" md5sum="5810d771342fcc9398c88f56a076d17e"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/templates/examples/templates/StringView.tpl.php" md5sum="b4746d9c4e29624cb75c4bbf74600371"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/templates/examples/templates/stdClass.tpl.php" md5sum="ecb083ab102eac7b1bc6d5306092b36d"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/templates/examples/templates/MyTemplate.tpl.php" md5sum="b7004c1f5eed19602e5c7afe97dbbd27"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/examples/basic.php" md5sum="83f46fdb6f52ea62bc9cd5ffe33e6d04"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/baseball/examples/baseball/PartialSeason.tpl.php" md5sum="028f2aa4e14931455bf1c2b89407def3"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/baseball/examples/baseball/ListItem.tpl.php" md5sum="c8ec71df0cf58b6261fbac6ffddc5b75"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/baseball/examples/baseball/index.php" md5sum="1320d6dd2ed76e3baae53b6941bcd238"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/baseball/examples/baseball/BaseballTeam.tpl.php" md5sum="45b74b532b13da64d056c43da39cbfa2"/>
<file role="doc" name="doc/pear2.php.net/PEAR2_Templates_Savant/examples/baseball/examples/baseball/BaseballPlayer.tpl.php" md5sum="527b6bdb33fd0092ad24c3402988ec9c"/>
</dir>
</contents>
<dependencies>
<required>
<php>
<min>5.3.0</min>
</php>
<pearinstaller>
<min>2.0.0a1</min>
</pearinstaller>
</required>
</dependencies>
<phprelease/>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h2>Player :: <?php echo $context->name; ?></h2>
<p>Years on team:</p>
<ul>
<?php echo $savant->render($context->years_on_team, 'ListItem.tpl.php'); ?>
</ul>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title><?php echo $context->name; ?></title>
</head>
<body>
<h1><?php echo $context->name; ?></h1>
<?php echo $savant->render($context->output); ?>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<li><?php echo $savant->render($context); ?></li>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php echo $context->start; ?>&mdash;<?php echo $context->end; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
require __DIR__.'/../../../autoload.php';

class BaseballTeam
{
protected $view = 'player';

protected $view_map = array(
'player' => 'BaseballPlayer'
);

public $name;

public $output;

function __construct($options = array())
{
if (isset($options['view'], $this->view_map[$options['view']])) {
$this->view = $options['view'];
}
$this->output = new $this->view_map[$this->view]();
}
}

class BaseballPlayer
{
public $name = 'Joseph Baseball <AKA: Joey B>';
public $years_on_team = array(2005, 2008);
function __construct()
{
$this->years_on_team[] = new PartialSeason(date('Y'));
}
}

class PartialSeason
{
public $start;
public $end;

function __construct($start, $end = null)
{
$this->start = $start;
if ($end) {
$this->end = $end;
}
}
}

$team = new BaseballTeam();
$team->name = 'Phillies';

$savant = new PEAR2\Templates\Savant\Main();
$savant->setEscape('htmlspecialchars');
echo $savant->render($team);
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
ini_set('display_errors',true);
error_reporting(E_ALL^E_STRICT);
require_once __DIR__.'/../../autoload.php';

// Set up a view object we'd like to display
$class = new stdClass();
$class->var1 = '<p>This is var1 inside a standard class</p>';

$savant = new \PEAR2\Templates\Savant\Main();
$savant->addTemplatePath(__DIR__ . '/templates');

// Display a simple string
echo $savant->render('<h1>Welcome to the Savant Demo</h1>');

// Display a string, in a custom template
echo $savant->render('mystring', 'StringView.tpl.php');

// Display an array
echo $savant->render(array('<ul>', '<li>This is an array</li>', '</ul>'));

// Display an object using a default class name to template mapping function
echo $savant->render($class);

// Display the object using a specific template
echo $savant->render($class, 'MyTemplate.tpl.php');

echo $savant->render('<h2>Output Filtering</h2>');
$savant->addFilters('htmlspecialchars');

// Now show an entire template with htmlspecialchars
echo $savant->render($class);

// Ok, now remove the output filters
$savant->setFilters();

highlight_file(__FILE__);

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h2>This is MyTemplate.tpl.php</h2>
<p>This represents using a custom output template for an object.</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>We're in the string view template, the data is: <?php echo $context; ?></p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h2>This is stdClass.tpl.php</h2>
<p>This represents the default mapping of class name to template.</p>
<p>The class of this context is: <?php echo get_class($context); ?></p>
<p>The $context object contains the stdClass object with access to all the member
variables and functions, such as $context->var1</p>
<?php echo $context->var1; ?>
Binary file added vendor/downloads/PEAR2_Autoload-0.2.3.tgz
Binary file not shown.
Binary file added vendor/downloads/PEAR2_Templates_Savant-0.3.3.tgz
Binary file not shown.
Loading

0 comments on commit 79dfccd

Please sign in to comment.