initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 62
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony
END

View File

@@ -0,0 +1,55 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
i18n
dir
skeleton
dir
config
dir
tasks
dir
generator
dir
bin
dir
modules
dir
data
dir
web
dir

View File

@@ -0,0 +1,23 @@
K 25
svn:wc:ra_dav:version-url
V 66
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/bin
END
release.php
K 25
svn:wc:ra_dav:version-url
V 78
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/bin/release.php
END
create_sandbox.sh
K 25
svn:wc:ra_dav:version-url
V 84
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/bin/create_sandbox.sh
END
symfony.php
K 25
svn:wc:ra_dav:version-url
V 78
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/bin/symfony.php
END

View File

@@ -0,0 +1,130 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/bin
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
release.php
file
2010-07-31T05:42:45.000000Z
cc1b63f6eed15e9f693949064454f85d
2009-05-28T02:14:48.119086Z
25
ben
2870
create_sandbox.sh
file
2010-07-31T05:42:45.000000Z
ba927643c3a2f6cbdcfd6c12fa5a66f3
2009-05-28T02:14:48.119086Z
25
ben
1976
symfony.php
file
2010-07-31T05:42:45.000000Z
8634d4e855289203fd37666e4be2fc1d
2009-05-28T02:14:48.119086Z
25
ben
4368

View File

@@ -0,0 +1,66 @@
#!/bin/sh
# creates a symfony sandbox for this symfony version
echo ">>> initialization"
DIR=../`dirname $0`
SANDBOX_NAME=sf_sandbox
APP_NAME=frontend
PHP=php
echo ">>> project initialization"
rm -rf ${SANDBOX_NAME}
mkdir ${SANDBOX_NAME}
cd ${SANDBOX_NAME}
echo ">>> create a new project and a new app"
${PHP} ${DIR}/../../data/bin/symfony init-project ${SANDBOX_NAME}
${PHP} symfony init-app ${APP_NAME}
echo ">>> add LICENSE"
cp ${DIR}/../../LICENSE LICENSE
echo ">>> add README"
cp ${DIR}/../../data/data/SANDBOX_README README
echo ">>> add symfony command line for windows users"
cp ${DIR}/../../data/bin/symfony.bat symfony.bat
echo ">>> freeze symfony"
${PHP} symfony freeze
rm config/config.php.bak
echo ">>> default to sqlite (propel.ini)"
sed -i '' -e "s#\(propel.database *= *\)mysql#\1sqlite#" config/propel.ini
sed -i '' -e "s#\(propel.database.createUrl *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini
sed -i '' -e "s#\(propel.database.url *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini
echo ">>> default to sqlite (databases.yml)"
echo "all:
propel:
class: sfPropelDatabase
param:
phptype: sqlite
database: %SF_DATA_DIR%/sandbox.db
" > config/databases.yml
echo ">>> add some empty files in empty directories"
touch apps/${APP_NAME}/modules/.sf apps/${APP_NAME}/i18n/.sf doc/.sf web/images/.sf
touch log/.sf cache/.sf batch/.sf data/sql/.sf data/model/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/templates/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/validate/.sf
touch data/symfony/modules/default/config/.sf
touch lib/model/.sf plugins/.sf web/js/.sf
touch test/unit/.sf test/functional/.sf test/functional/${APP_NAME}/.sf
touch web/uploads/assets/.sf
touch data/sandbox.db
chmod 777 data
chmod 777 data/sandbox.db
echo ">>> create archive"
cd ..
tar zcpf ${SANDBOX_NAME}.tgz ${SANDBOX_NAME}
echo ">>> cleanup"
rm -rf ${SANDBOX_NAME}

View File

@@ -0,0 +1,116 @@
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2007 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Release script.
*
* Usage: php data/bin/release.php 1.0.0 stable
*
* @package symfony
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id$
*/
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeFunction.php');
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeGetopt.class.php');
require_once(dirname(__FILE__).'/../../lib/vendor/lime/lime.php');
if (!isset($argv[1]))
{
throw new Exception('You must provide version prefix.');
}
if (!isset($argv[2]))
{
throw new Exception('You must provide stability status (alpha/beta/stable).');
}
$stability = $argv[2];
if (($stability == 'beta' || $stability == 'alpha') && count(explode('.', $argv[1])) < 2)
{
$version_prefix = $argv[1];
$result = pake_sh('svn status -u '.getcwd());
if (preg_match('/Status against revision\:\s+(\d+)\s*$/im', $result, $match))
{
$version = $match[1];
}
if (!isset($version))
{
throw new Exception('unable to find last svn revision');
}
// make a PEAR compatible version
$version = $version_prefix.'.'.$version;
}
else
{
$version = $argv[1];
}
print 'releasing symfony version "'.$version."\"\n";
// Test
$h = new lime_harness(new lime_output_color());
$h->base_dir = realpath(dirname(__FILE__).'/../../test');
// unit tests
$h->register_glob($h->base_dir.'/unit/*/*Test.php');
// functional tests
$h->register_glob($h->base_dir.'/functional/*Test.php');
$h->register_glob($h->base_dir.'/functional/*/*Test.php');
$ret = $h->run();
if (!$ret)
{
throw new Exception('Some tests failed. Release process aborted!');
}
if (is_file('package.xml'))
{
pake_remove('package.xml', getcwd());
}
pake_copy(getcwd().'/package.xml.tmpl', getcwd().'/package.xml');
// add class files
$finder = pakeFinder::type('file')->ignore_version_control()->relative();
$xml_classes = '';
$dirs = array('lib' => 'php', 'data' => 'data');
foreach ($dirs as $dir => $role)
{
$class_files = $finder->in($dir);
foreach ($class_files as $file)
{
$xml_classes .= '<file role="'.$role.'" baseinstalldir="symfony" install-as="'.$file.'" name="'.$dir.'/'.$file.'" />'."\n";
}
}
// replace tokens
pake_replace_tokens('package.xml', getcwd(), '##', '##', array(
'SYMFONY_VERSION' => $version,
'CURRENT_DATE' => date('Y-m-d'),
'CLASS_FILES' => $xml_classes,
'STABILITY' => $stability,
));
$results = pake_sh('pear package');
echo $results;
pake_remove('package.xml', getcwd());
// copy .tgz as symfony-latest.tgz
pake_copy(getcwd().'/symfony-'.$version.'.tgz', getcwd().'/symfony-latest.tgz');
exit(0);

View File

@@ -0,0 +1,176 @@
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!isset($sf_symfony_lib_dir))
{
die("You must launch symfony command line with the symfony script\n");
}
if (ini_get('zend.ze1_compatibility_mode'))
{
die("symfony cannot run with zend.ze1_compatibility_mode enabled.\nPlease turn zend.ze1_compatibility_mode to Off in your php.ini.\n");
}
// set magic_quotes_runtime to off
ini_set('magic_quotes_runtime', 'Off');
// check if we are using an old project
if (file_exists('config/config.php') && !isset($sf_symfony_lib_dir))
{
// allow only upgrading
if (!in_array('upgrade', $argv))
{
echo "Please upgrade your project before launching any other symfony task\n";
exit();
}
}
require_once($sf_symfony_lib_dir.'/vendor/pake/pakeFunction.php');
require_once($sf_symfony_lib_dir.'/vendor/pake/pakeGetopt.class.php');
// autoloading for pake tasks
class simpleAutoloader
{
static public
$class_paths = array(),
$autoload_callables = array();
static public function initialize($sf_symfony_lib_dir)
{
self::$class_paths = array();
self::register($sf_symfony_lib_dir, '.class.php');
self::register($sf_symfony_lib_dir.'/vendor/propel', '.php');
self::register($sf_symfony_lib_dir.'/vendor/creole', '.php');
self::register('lib/model', '.php');
self::register('plugins', '.php');
}
static public function __autoload($class)
{
if (!isset(self::$class_paths[$class]))
{
foreach ((array) self::$autoload_callables as $callable)
{
if (call_user_func($callable, $class))
{
return true;
}
}
return false;
}
require_once(self::$class_paths[$class]);
return true;
}
static public function register($dir, $ext)
{
if (!is_dir($dir))
{
return;
}
foreach (pakeFinder::type('file')->name('*'.$ext)->ignore_version_control()->follow_link()->in($dir) as $file)
{
self::$class_paths[str_replace($ext, '', str_replace('.class', '', basename($file, $ext)))] = $file;
}
}
static public function add($class, $file)
{
if (!is_file($file))
{
return;
}
self::$class_paths[$class] = $file;
}
static public function registerCallable($callable)
{
if (!is_callable($callable))
{
throw new Exception('Autoload callable does not exist');
}
self::$autoload_callables[] = $callable;
}
}
function __autoload($class)
{
static $initialized = false;
if (!$initialized)
{
simpleAutoloader::initialize(sfConfig::get('sf_symfony_lib_dir'));
$initialized = true;
}
return simpleAutoloader::__autoload($class);
}
// trap -V before pake
if (in_array('-V', $argv) || in_array('--version', $argv))
{
printf("symfony version %s\n", pakeColor::colorize(trim(file_get_contents($sf_symfony_lib_dir.'/VERSION')), 'INFO'));
exit(0);
}
if (count($argv) <= 1)
{
$argv[] = '-T';
}
require_once($sf_symfony_lib_dir.'/config/sfConfig.class.php');
sfConfig::add(array(
'sf_root_dir' => getcwd(),
'sf_symfony_lib_dir' => $sf_symfony_lib_dir,
'sf_symfony_data_dir' => $sf_symfony_data_dir,
));
// directory layout
include($sf_symfony_data_dir.'/config/constants.php');
// include path
set_include_path(
sfConfig::get('sf_lib_dir').PATH_SEPARATOR.
sfConfig::get('sf_app_lib_dir').PATH_SEPARATOR.
sfConfig::get('sf_model_dir').PATH_SEPARATOR.
sfConfig::get('sf_symfony_lib_dir').DIRECTORY_SEPARATOR.'vendor'.PATH_SEPARATOR.
get_include_path()
);
// register tasks
$dirs = array(
sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'tasks' => 'myPake*.php', // project tasks
sfConfig::get('sf_symfony_data_dir').DIRECTORY_SEPARATOR.'tasks' => 'sfPake*.php', // symfony tasks
sfConfig::get('sf_root_dir').'/plugins/*/data/tasks' => '*.php', // plugin tasks
);
foreach ($dirs as $globDir => $name)
{
if ($dirs = glob($globDir))
{
$tasks = pakeFinder::type('file')->ignore_version_control()->name($name)->in($dirs);
foreach ($tasks as $task)
{
include_once($task);
}
}
}
// run task
pakeApp::get_instance()->run(null, null, false);
exit(0);

View File

@@ -0,0 +1,66 @@
#!/bin/sh
# creates a symfony sandbox for this symfony version
echo ">>> initialization"
DIR=../`dirname $0`
SANDBOX_NAME=sf_sandbox
APP_NAME=frontend
PHP=php
echo ">>> project initialization"
rm -rf ${SANDBOX_NAME}
mkdir ${SANDBOX_NAME}
cd ${SANDBOX_NAME}
echo ">>> create a new project and a new app"
${PHP} ${DIR}/../../data/bin/symfony init-project ${SANDBOX_NAME}
${PHP} symfony init-app ${APP_NAME}
echo ">>> add LICENSE"
cp ${DIR}/../../LICENSE LICENSE
echo ">>> add README"
cp ${DIR}/../../data/data/SANDBOX_README README
echo ">>> add symfony command line for windows users"
cp ${DIR}/../../data/bin/symfony.bat symfony.bat
echo ">>> freeze symfony"
${PHP} symfony freeze
rm config/config.php.bak
echo ">>> default to sqlite (propel.ini)"
sed -i '' -e "s#\(propel.database *= *\)mysql#\1sqlite#" config/propel.ini
sed -i '' -e "s#\(propel.database.createUrl *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini
sed -i '' -e "s#\(propel.database.url *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini
echo ">>> default to sqlite (databases.yml)"
echo "all:
propel:
class: sfPropelDatabase
param:
phptype: sqlite
database: %SF_DATA_DIR%/sandbox.db
" > config/databases.yml
echo ">>> add some empty files in empty directories"
touch apps/${APP_NAME}/modules/.sf apps/${APP_NAME}/i18n/.sf doc/.sf web/images/.sf
touch log/.sf cache/.sf batch/.sf data/sql/.sf data/model/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/templates/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/validate/.sf
touch data/symfony/modules/default/config/.sf
touch lib/model/.sf plugins/.sf web/js/.sf
touch test/unit/.sf test/functional/.sf test/functional/${APP_NAME}/.sf
touch web/uploads/assets/.sf
touch data/sandbox.db
chmod 777 data
chmod 777 data/sandbox.db
echo ">>> create archive"
cd ..
tar zcpf ${SANDBOX_NAME}.tgz ${SANDBOX_NAME}
echo ">>> cleanup"
rm -rf ${SANDBOX_NAME}

View File

@@ -0,0 +1,116 @@
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2007 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Release script.
*
* Usage: php data/bin/release.php 1.0.0 stable
*
* @package symfony
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id$
*/
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeFunction.php');
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeGetopt.class.php');
require_once(dirname(__FILE__).'/../../lib/vendor/lime/lime.php');
if (!isset($argv[1]))
{
throw new Exception('You must provide version prefix.');
}
if (!isset($argv[2]))
{
throw new Exception('You must provide stability status (alpha/beta/stable).');
}
$stability = $argv[2];
if (($stability == 'beta' || $stability == 'alpha') && count(explode('.', $argv[1])) < 2)
{
$version_prefix = $argv[1];
$result = pake_sh('svn status -u '.getcwd());
if (preg_match('/Status against revision\:\s+(\d+)\s*$/im', $result, $match))
{
$version = $match[1];
}
if (!isset($version))
{
throw new Exception('unable to find last svn revision');
}
// make a PEAR compatible version
$version = $version_prefix.'.'.$version;
}
else
{
$version = $argv[1];
}
print 'releasing symfony version "'.$version."\"\n";
// Test
$h = new lime_harness(new lime_output_color());
$h->base_dir = realpath(dirname(__FILE__).'/../../test');
// unit tests
$h->register_glob($h->base_dir.'/unit/*/*Test.php');
// functional tests
$h->register_glob($h->base_dir.'/functional/*Test.php');
$h->register_glob($h->base_dir.'/functional/*/*Test.php');
$ret = $h->run();
if (!$ret)
{
throw new Exception('Some tests failed. Release process aborted!');
}
if (is_file('package.xml'))
{
pake_remove('package.xml', getcwd());
}
pake_copy(getcwd().'/package.xml.tmpl', getcwd().'/package.xml');
// add class files
$finder = pakeFinder::type('file')->ignore_version_control()->relative();
$xml_classes = '';
$dirs = array('lib' => 'php', 'data' => 'data');
foreach ($dirs as $dir => $role)
{
$class_files = $finder->in($dir);
foreach ($class_files as $file)
{
$xml_classes .= '<file role="'.$role.'" baseinstalldir="symfony" install-as="'.$file.'" name="'.$dir.'/'.$file.'" />'."\n";
}
}
// replace tokens
pake_replace_tokens('package.xml', getcwd(), '##', '##', array(
'SYMFONY_VERSION' => $version,
'CURRENT_DATE' => date('Y-m-d'),
'CLASS_FILES' => $xml_classes,
'STABILITY' => $stability,
));
$results = pake_sh('pear package');
echo $results;
pake_remove('package.xml', getcwd());
// copy .tgz as symfony-latest.tgz
pake_copy(getcwd().'/symfony-'.$version.'.tgz', getcwd().'/symfony-latest.tgz');
exit(0);

View File

@@ -0,0 +1,176 @@
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!isset($sf_symfony_lib_dir))
{
die("You must launch symfony command line with the symfony script\n");
}
if (ini_get('zend.ze1_compatibility_mode'))
{
die("symfony cannot run with zend.ze1_compatibility_mode enabled.\nPlease turn zend.ze1_compatibility_mode to Off in your php.ini.\n");
}
// set magic_quotes_runtime to off
ini_set('magic_quotes_runtime', 'Off');
// check if we are using an old project
if (file_exists('config/config.php') && !isset($sf_symfony_lib_dir))
{
// allow only upgrading
if (!in_array('upgrade', $argv))
{
echo "Please upgrade your project before launching any other symfony task\n";
exit();
}
}
require_once($sf_symfony_lib_dir.'/vendor/pake/pakeFunction.php');
require_once($sf_symfony_lib_dir.'/vendor/pake/pakeGetopt.class.php');
// autoloading for pake tasks
class simpleAutoloader
{
static public
$class_paths = array(),
$autoload_callables = array();
static public function initialize($sf_symfony_lib_dir)
{
self::$class_paths = array();
self::register($sf_symfony_lib_dir, '.class.php');
self::register($sf_symfony_lib_dir.'/vendor/propel', '.php');
self::register($sf_symfony_lib_dir.'/vendor/creole', '.php');
self::register('lib/model', '.php');
self::register('plugins', '.php');
}
static public function __autoload($class)
{
if (!isset(self::$class_paths[$class]))
{
foreach ((array) self::$autoload_callables as $callable)
{
if (call_user_func($callable, $class))
{
return true;
}
}
return false;
}
require_once(self::$class_paths[$class]);
return true;
}
static public function register($dir, $ext)
{
if (!is_dir($dir))
{
return;
}
foreach (pakeFinder::type('file')->name('*'.$ext)->ignore_version_control()->follow_link()->in($dir) as $file)
{
self::$class_paths[str_replace($ext, '', str_replace('.class', '', basename($file, $ext)))] = $file;
}
}
static public function add($class, $file)
{
if (!is_file($file))
{
return;
}
self::$class_paths[$class] = $file;
}
static public function registerCallable($callable)
{
if (!is_callable($callable))
{
throw new Exception('Autoload callable does not exist');
}
self::$autoload_callables[] = $callable;
}
}
function __autoload($class)
{
static $initialized = false;
if (!$initialized)
{
simpleAutoloader::initialize(sfConfig::get('sf_symfony_lib_dir'));
$initialized = true;
}
return simpleAutoloader::__autoload($class);
}
// trap -V before pake
if (in_array('-V', $argv) || in_array('--version', $argv))
{
printf("symfony version %s\n", pakeColor::colorize(trim(file_get_contents($sf_symfony_lib_dir.'/VERSION')), 'INFO'));
exit(0);
}
if (count($argv) <= 1)
{
$argv[] = '-T';
}
require_once($sf_symfony_lib_dir.'/config/sfConfig.class.php');
sfConfig::add(array(
'sf_root_dir' => getcwd(),
'sf_symfony_lib_dir' => $sf_symfony_lib_dir,
'sf_symfony_data_dir' => $sf_symfony_data_dir,
));
// directory layout
include($sf_symfony_data_dir.'/config/constants.php');
// include path
set_include_path(
sfConfig::get('sf_lib_dir').PATH_SEPARATOR.
sfConfig::get('sf_app_lib_dir').PATH_SEPARATOR.
sfConfig::get('sf_model_dir').PATH_SEPARATOR.
sfConfig::get('sf_symfony_lib_dir').DIRECTORY_SEPARATOR.'vendor'.PATH_SEPARATOR.
get_include_path()
);
// register tasks
$dirs = array(
sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'tasks' => 'myPake*.php', // project tasks
sfConfig::get('sf_symfony_data_dir').DIRECTORY_SEPARATOR.'tasks' => 'sfPake*.php', // symfony tasks
sfConfig::get('sf_root_dir').'/plugins/*/data/tasks' => '*.php', // plugin tasks
);
foreach ($dirs as $globDir => $name)
{
if ($dirs = glob($globDir))
{
$tasks = pakeFinder::type('file')->ignore_version_control()->name($name)->in($dirs);
foreach ($tasks as $task)
{
include_once($task);
}
}
}
// run task
pakeApp::get_instance()->run(null, null, false);
exit(0);

View File

@@ -0,0 +1,95 @@
K 25
svn:wc:ra_dav:version-url
V 69
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config
END
i18n.yml
K 25
svn:wc:ra_dav:version-url
V 78
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/i18n.yml
END
factories.yml
K 25
svn:wc:ra_dav:version-url
V 83
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/factories.yml
END
module.yml
K 25
svn:wc:ra_dav:version-url
V 80
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/module.yml
END
config_handlers.yml
K 25
svn:wc:ra_dav:version-url
V 89
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/config_handlers.yml
END
bootstrap_compile.yml
K 25
svn:wc:ra_dav:version-url
V 91
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/bootstrap_compile.yml
END
logging.yml
K 25
svn:wc:ra_dav:version-url
V 81
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/logging.yml
END
php.yml
K 25
svn:wc:ra_dav:version-url
V 77
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/php.yml
END
settings.yml
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/settings.yml
END
core_compile.yml
K 25
svn:wc:ra_dav:version-url
V 86
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/core_compile.yml
END
constants.php
K 25
svn:wc:ra_dav:version-url
V 83
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/constants.php
END
security.yml
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/security.yml
END
filters.yml
K 25
svn:wc:ra_dav:version-url
V 81
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/filters.yml
END
autoload.yml
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/autoload.yml
END
mailer.yml
K 25
svn:wc:ra_dav:version-url
V 80
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/mailer.yml
END
view.yml
K 25
svn:wc:ra_dav:version-url
V 78
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/config/view.yml
END

View File

@@ -0,0 +1,538 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/config
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
i18n.yml
file
2010-07-31T05:42:43.000000Z
ce0e9bf599d40bcc769155cedb1c887c
2009-05-28T02:14:48.119086Z
25
ben
176
factories.yml
file
2010-07-31T05:42:43.000000Z
aac1ec035b1d843a5f68da61ce51bed1
2009-05-28T02:14:48.119086Z
25
ben
372
module.yml
file
2010-07-31T05:42:43.000000Z
789f193e223871b3a0eab032c3b0210c
2009-05-28T02:14:48.119086Z
25
ben
82
config_handlers.yml
file
2010-07-31T05:42:43.000000Z
6f6b54e90add2c141053c61fb4d100e0
2009-05-28T02:14:48.119086Z
25
ben
1386
bootstrap_compile.yml
file
2010-07-31T05:42:43.000000Z
4908448d0d3c9d1f9b5aa12fd84ea357
2009-05-28T02:14:48.119086Z
25
ben
35
logging.yml
file
2010-07-31T05:42:43.000000Z
59c860f8b97c2c12bea3e49d63b951c7
2009-05-28T02:14:48.119086Z
25
ben
317
php.yml
file
2010-07-31T05:42:43.000000Z
6b3246cb1af540b9b9206e01156afc2d
2009-05-28T02:14:48.119086Z
25
ben
273
settings.yml
file
2010-07-31T05:42:43.000000Z
63785745184e4be29254be93c06124d3
2009-05-28T02:14:48.119086Z
25
ben
5071
core_compile.yml
file
2010-07-31T05:42:43.000000Z
ba4826e8a79b0b84a23cf270a11f4ea4
2009-05-28T02:14:48.119086Z
25
ben
1977
constants.php
file
2010-07-31T05:42:43.000000Z
f626c4ba349ff4fa4865c7e027e413a1
2009-05-28T02:14:48.119086Z
25
ben
4297
security.yml
file
2010-07-31T05:42:43.000000Z
d41d8cd98f00b204e9800998ecf8427e
2009-05-28T02:14:48.119086Z
25
ben
0
filters.yml
file
2010-07-31T05:42:43.000000Z
acaba65d82c8aea1ebcf33e9f2e70b04
2009-05-28T02:14:48.119086Z
25
ben
705
autoload.yml
file
2010-07-31T05:42:43.000000Z
025d1fadf28c41275922e42de7a1d5dc
2009-05-28T02:14:48.119086Z
25
ben
1328
mailer.yml
file
2010-07-31T05:42:43.000000Z
d60f57ef70291a2fbafbed56ed8f0599
2009-05-28T02:14:48.119086Z
25
ben
351
view.yml
file
2010-07-31T05:42:43.000000Z
b6596842f82683b71f3cb7fa6731f3c2
2009-05-28T02:14:48.119086Z
25
ben
9

View File

@@ -0,0 +1,59 @@
autoload:
# symfony core
symfony:
name: symfony
path: %SF_SYMFONY_LIB_DIR%
recursive: on
exclude: [vendor]
propel:
name: propel
path: %SF_SYMFONY_LIB_DIR%/vendor/propel
recursive: on
creole:
name: creole
path: %SF_SYMFONY_LIB_DIR%/vendor/creole
recursive: on
propel_addon:
name: propel addon
files:
Propel: %SF_SYMFONY_LIB_DIR%/addon/propel/sfPropelAutoload.php
# plugins
plugins_lib:
name: plugins lib
path: %SF_PLUGINS_DIR%/*/lib
recursive: on
plugins_module_lib:
name: plugins module lib
path: %SF_PLUGINS_DIR%/*/modules/*/lib
prefix: 2
recursive: on
# project
project:
name: project
path: %SF_LIB_DIR%
recursive: on
exclude: [model, symfony]
project_model:
name: project model
path: %SF_MODEL_LIB_DIR%
recursive: on
# application
application:
name: application
path: %SF_APP_LIB_DIR%
recursive: on
modules:
name: module
path: %SF_APP_DIR%/modules/*/lib
prefix: 1
recursive: on

View File

@@ -0,0 +1 @@
- %SF_SYMFONY_LIB_DIR%/symfony.php

View File

@@ -0,0 +1,70 @@
config/autoload.yml:
class: sfAutoloadConfigHandler
config/php.yml:
class: sfPhpConfigHandler
config/databases.yml:
class: sfDatabaseConfigHandler
config/settings.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_
config/app.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: app_
config/factories.yml:
class: sfFactoryConfigHandler
config/bootstrap_compile.yml:
class: sfCompileConfigHandler
config/core_compile.yml:
class: sfCompileConfigHandler
config/filters.yml:
class: sfFilterConfigHandler
config/logging.yml:
class: sfLoggingConfigHandler
param:
prefix: sf_logging_
config/routing.yml:
class: sfRoutingConfigHandler
config/i18n.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_i18n_
modules/*/config/generator.yml:
class: sfGeneratorConfigHandler
modules/*/config/view.yml:
class: sfViewConfigHandler
modules/*/config/mailer.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_mailer_
module: yes
modules/*/config/security.yml:
class: sfSecurityConfigHandler
modules/*/config/cache.yml:
class: sfCacheConfigHandler
modules/*/validate/*.yml:
class: sfValidatorConfigHandler
modules/*/config/module.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: mod_
module: yes

View File

@@ -0,0 +1,81 @@
<?php
// for tracking temporary variables
$usedVars = array_keys(get_defined_vars());
$sf_root_dir = sfConfig::get('sf_root_dir');
$sf_app = sfConfig::get('sf_app');
$sf_environment = sfConfig::get('sf_environment');
sfConfig::add(array(
// root directory names
'sf_bin_dir_name' => $sf_bin_dir_name = 'batch',
'sf_cache_dir_name' => $sf_cache_dir_name = 'cache',
'sf_log_dir_name' => $sf_log_dir_name = 'log',
'sf_lib_dir_name' => $sf_lib_dir_name = 'lib',
'sf_web_dir_name' => $sf_web_dir_name = 'htdocs',
'sf_upload_dir_name' => $sf_upload_dir_name = 'uploads',
'sf_data_dir_name' => $sf_data_dir_name = 'data',
'sf_config_dir_name' => $sf_config_dir_name = 'config',
'sf_apps_dir_name' => $sf_apps_dir_name = 'apps',
'sf_test_dir_name' => $sf_test_dir_name = 'test',
'sf_doc_dir_name' => $sf_doc_dir_name = 'doc',
'sf_plugins_dir_name' => $sf_plugins_dir_name = 'plugins',
// global directory structure
'sf_app_dir' => $sf_app_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_apps_dir_name.DIRECTORY_SEPARATOR.$sf_app,
'sf_lib_dir' => $sf_lib_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_lib_dir_name,
'sf_bin_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_bin_dir_name,
'sf_web_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_web_dir_name,
'sf_upload_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_web_dir_name.DIRECTORY_SEPARATOR.$sf_upload_dir_name,
'sf_root_cache_dir' => $sf_root_cache_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_cache_dir_name,
'sf_base_cache_dir' => $sf_base_cache_dir = $sf_root_cache_dir.DIRECTORY_SEPARATOR.$sf_app,
'sf_cache_dir' => $sf_cache_dir = $sf_base_cache_dir.DIRECTORY_SEPARATOR.$sf_environment,
'sf_log_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_log_dir_name,
'sf_data_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_data_dir_name,
'sf_config_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_test_dir_name,
'sf_doc_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.$sf_doc_dir_name,
'sf_plugins_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_plugins_dir_name,
// lib directory names
'sf_model_dir_name' => $sf_model_dir_name = 'model',
// lib directory structure
'sf_model_lib_dir' => $sf_lib_dir.DIRECTORY_SEPARATOR.$sf_model_dir_name,
// SF_CACHE_DIR directory structure
'sf_template_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'template',
'sf_i18n_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'i18n',
'sf_config_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'test',
'sf_module_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'modules',
// SF_APP_DIR sub-directories names
'sf_app_i18n_dir_name' => $sf_app_i18n_dir_name = 'i18n',
'sf_app_config_dir_name' => $sf_app_config_dir_name = 'config',
'sf_app_lib_dir_name' => $sf_app_lib_dir_name = 'lib',
'sf_app_module_dir_name' => $sf_app_module_dir_name = 'modules',
'sf_app_template_dir_name' => $sf_app_template_dir_name = 'templates',
// SF_APP_DIR directory structure
'sf_app_config_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_config_dir_name,
'sf_app_lib_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_lib_dir_name,
'sf_app_module_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_module_dir_name,
'sf_app_template_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_template_dir_name,
'sf_app_i18n_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_i18n_dir_name,
// SF_APP_MODULE_DIR sub-directories names
'sf_app_module_action_dir_name' => 'actions',
'sf_app_module_template_dir_name' => 'templates',
'sf_app_module_lib_dir_name' => 'lib',
'sf_app_module_view_dir_name' => 'views',
'sf_app_module_validate_dir_name' => 'validate',
'sf_app_module_config_dir_name' => 'config',
'sf_app_module_i18n_dir_name' => 'i18n',
));
// Remove temporary variables
foreach (array_diff(array_keys(get_defined_vars()), $usedVars) as $var) {
unset($$var);
}

View File

@@ -0,0 +1,37 @@
- %SF_SYMFONY_LIB_DIR%/action/sfComponent.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfAction.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActions.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStack.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStackEntry.class.php
#- %SF_SYMFONY_LIB_DIR%/config/sfLoader.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfController.class.php
- %SF_SYMFONY_LIB_DIR%/database/sfDatabaseManager.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfCommonFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfExecutionFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfRenderingFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilterChain.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfStorage.class.php
- %SF_SYMFONY_LIB_DIR%/user/sfUser.class.php
- %SF_SYMFONY_LIB_DIR%/util/sfContext.class.php
- %SF_SYMFONY_LIB_DIR%/validator/sfValidatorManager.class.php
#- %SF_SYMFONY_LIB_DIR%/util/sfParameterHolder.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfView.class.php
# these classes are optionals but very likely to be used (in web context)
#- %SF_SYMFONY_LIB_DIR%/controller/sfRouting.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfWebController.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfFrontWebController.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfWebRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfWebResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfSessionStorage.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfPHPView.class.php
# output escaper
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaper.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperArrayDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperGetterDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperIteratorDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperObjectDecorator.class.php

View File

@@ -0,0 +1,23 @@
default:
controller:
class: sfFrontWebController
request:
class: sfWebRequest
response:
class: sfWebResponse
user:
class: myUser
storage:
class: sfSessionStorage
param:
session_name: symfony
view_cache:
class: sfFileCache
param:
automaticCleaningFactor: 0
cacheDir: %SF_TEMPLATE_CACHE_DIR%

View File

@@ -0,0 +1,38 @@
# rendering filter must be the first registered filter
rendering:
class: sfRenderingFilter
param:
type: rendering
web_debug:
class: sfWebDebugFilter
param:
condition: %SF_WEB_DEBUG%
# security filter must have a type of security
security:
class: sfBasicSecurityFilter
param:
type: security
condition: %SF_USE_SECURITY%
# generally, you will want to insert your own filters here
cache:
class: sfCacheFilter
param:
condition: %SF_CACHE%
common:
class: sfCommonFilter
flash:
class: sfFlashFilter
param:
condition: %SF_USE_FLASH%
# execution filter must be the last registered filter
execution:
class: sfExecutionFilter
param:
type: execution

View File

@@ -0,0 +1,7 @@
default:
default_culture: en
source: XLIFF
debug: off
cache: on
untranslated_prefix: "[T]"
untranslated_suffix: "[/T]"

View File

@@ -0,0 +1,16 @@
default:
enabled: on
level: debug
rotate: off
period: 7
history: 10
purge: on
loggers:
sf_web_debug:
class: sfWebDebugLogger
param:
condition: %SF_WEB_DEBUG%
sf_file_debug:
class: sfFileLogger
param:
file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

View File

@@ -0,0 +1,16 @@
default:
deliver: on
mailer: smtp
domain: localhost.localdomain
hostname: localhost
port: 25
username: ''
password: ''
wordwrap: 80
.headers:
priority: 3
content_type: text/plain
charset: utf-8
encoding: 8bit

View File

@@ -0,0 +1,4 @@
default:
enabled: on
view_class: sfPHP
is_internal: off

View File

@@ -0,0 +1,14 @@
set:
magic_quotes_runtime: off
log_errors: on
arg_separator.output: |
&amp;
check:
zend.ze1_compatibility_mode: off
warn:
magic_quotes_gpc: off
register_globals: off
session.auto_start: off

View File

@@ -0,0 +1,82 @@
default:
.actions:
default_module: default # Default module and action to be called when
default_action: index # A routing rule doesn't set it
error_404_module: default # To be called when a 404 error is raised
error_404_action: error404 # Or when the requested URL doesn't match any route
login_module: default # To be called when a non-authenticated user
login_action: login # Tries to access a secure page
secure_module: default # To be called when a user doesn't have
secure_action: secure # The credentials required for an action
module_disabled_module: default # To be called when a user requests
module_disabled_action: disabled # A module disabled in the module.yml
unavailable_module: default # To be called when a user requests a page
unavailable_action: unavailable # From an application disabled via the available setting below
.settings:
available: on # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
# Optional features. Deactivating unused features boots performance a bit.
use_database: on # Enable database manager. Set to off if you don't use a database.
use_security: on # Enable security features (login and credentials). Set to off for public applications.
use_flash: on # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
i18n: off # Enable interface translation. Set to off if your application should not be translated.
check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
# Output escaping settings
escaping_strategy: bc # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
escaping_method: ESC_ENTITIES # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
# Routing settings
suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
no_script_name: off # Enable the front controller name in generated URLs
# Validation settings, used for error generation by the Validation helper
validation_error_prefix: ' &darr;&nbsp;'
validation_error_suffix: ' &nbsp;&darr;'
validation_error_class: form_error
validation_error_id_prefix: error_for_
# Cache settings
cache: off # Enable the template cache
etag: on # Enable etag handling
# Logging and debugging settings
web_debug: off # Enable the web debug toolbar
error_reporting: <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
# Assets paths
rich_text_js_dir: js/tiny_mce
prototype_web_dir: /sf/prototype
admin_web_dir: /sf/sf_admin
web_debug_web_dir: /sf/sf_web_debug
calendar_web_dir: /sf/calendar
# Helpers included in all templates by default
standard_helpers: [Partial, Cache, Form]
# Activated modules from plugins or from the symfony core
enabled_modules: [default]
# Charset used for the response
charset: utf-8
# Miscellaneous
strip_comments: on # Remove comments in core framework classes as defined in the core_compile.yml
autoloading_functions: ~ # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
timeout: 1800 # Session timeout, in seconds
max_forwards: 5
path_info_array: SERVER
path_info_key: PATH_INFO
url_format: PATH
# ORM
orm: propel

View File

@@ -0,0 +1 @@
default:

View File

@@ -0,0 +1,59 @@
autoload:
# symfony core
symfony:
name: symfony
path: %SF_SYMFONY_LIB_DIR%
recursive: on
exclude: [vendor]
propel:
name: propel
path: %SF_SYMFONY_LIB_DIR%/vendor/propel
recursive: on
creole:
name: creole
path: %SF_SYMFONY_LIB_DIR%/vendor/creole
recursive: on
propel_addon:
name: propel addon
files:
Propel: %SF_SYMFONY_LIB_DIR%/addon/propel/sfPropelAutoload.php
# plugins
plugins_lib:
name: plugins lib
path: %SF_PLUGINS_DIR%/*/lib
recursive: on
plugins_module_lib:
name: plugins module lib
path: %SF_PLUGINS_DIR%/*/modules/*/lib
prefix: 2
recursive: on
# project
project:
name: project
path: %SF_LIB_DIR%
recursive: on
exclude: [model, symfony]
project_model:
name: project model
path: %SF_MODEL_LIB_DIR%
recursive: on
# application
application:
name: application
path: %SF_APP_LIB_DIR%
recursive: on
modules:
name: module
path: %SF_APP_DIR%/modules/*/lib
prefix: 1
recursive: on

View File

@@ -0,0 +1 @@
- %SF_SYMFONY_LIB_DIR%/symfony.php

View File

@@ -0,0 +1,70 @@
config/autoload.yml:
class: sfAutoloadConfigHandler
config/php.yml:
class: sfPhpConfigHandler
config/databases.yml:
class: sfDatabaseConfigHandler
config/settings.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_
config/app.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: app_
config/factories.yml:
class: sfFactoryConfigHandler
config/bootstrap_compile.yml:
class: sfCompileConfigHandler
config/core_compile.yml:
class: sfCompileConfigHandler
config/filters.yml:
class: sfFilterConfigHandler
config/logging.yml:
class: sfLoggingConfigHandler
param:
prefix: sf_logging_
config/routing.yml:
class: sfRoutingConfigHandler
config/i18n.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_i18n_
modules/*/config/generator.yml:
class: sfGeneratorConfigHandler
modules/*/config/view.yml:
class: sfViewConfigHandler
modules/*/config/mailer.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_mailer_
module: yes
modules/*/config/security.yml:
class: sfSecurityConfigHandler
modules/*/config/cache.yml:
class: sfCacheConfigHandler
modules/*/validate/*.yml:
class: sfValidatorConfigHandler
modules/*/config/module.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: mod_
module: yes

View File

@@ -0,0 +1,81 @@
<?php
// for tracking temporary variables
$usedVars = array_keys(get_defined_vars());
$sf_root_dir = sfConfig::get('sf_root_dir');
$sf_app = sfConfig::get('sf_app');
$sf_environment = sfConfig::get('sf_environment');
sfConfig::add(array(
// root directory names
'sf_bin_dir_name' => $sf_bin_dir_name = 'batch',
'sf_cache_dir_name' => $sf_cache_dir_name = 'cache',
'sf_log_dir_name' => $sf_log_dir_name = 'log',
'sf_lib_dir_name' => $sf_lib_dir_name = 'lib',
'sf_web_dir_name' => $sf_web_dir_name = 'htdocs',
'sf_upload_dir_name' => $sf_upload_dir_name = 'uploads',
'sf_data_dir_name' => $sf_data_dir_name = 'data',
'sf_config_dir_name' => $sf_config_dir_name = 'config',
'sf_apps_dir_name' => $sf_apps_dir_name = 'apps',
'sf_test_dir_name' => $sf_test_dir_name = 'test',
'sf_doc_dir_name' => $sf_doc_dir_name = 'doc',
'sf_plugins_dir_name' => $sf_plugins_dir_name = 'plugins',
// global directory structure
'sf_app_dir' => $sf_app_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_apps_dir_name.DIRECTORY_SEPARATOR.$sf_app,
'sf_lib_dir' => $sf_lib_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_lib_dir_name,
'sf_bin_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_bin_dir_name,
'sf_web_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_web_dir_name,
'sf_upload_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$sf_web_dir_name.DIRECTORY_SEPARATOR.$sf_upload_dir_name,
'sf_root_cache_dir' => $sf_root_cache_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_cache_dir_name,
'sf_base_cache_dir' => $sf_base_cache_dir = $sf_root_cache_dir.DIRECTORY_SEPARATOR.$sf_app,
'sf_cache_dir' => $sf_cache_dir = $sf_base_cache_dir.DIRECTORY_SEPARATOR.$sf_environment,
'sf_log_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_log_dir_name,
'sf_data_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_data_dir_name,
'sf_config_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_test_dir_name,
'sf_doc_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.$sf_doc_dir_name,
'sf_plugins_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_plugins_dir_name,
// lib directory names
'sf_model_dir_name' => $sf_model_dir_name = 'model',
// lib directory structure
'sf_model_lib_dir' => $sf_lib_dir.DIRECTORY_SEPARATOR.$sf_model_dir_name,
// SF_CACHE_DIR directory structure
'sf_template_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'template',
'sf_i18n_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'i18n',
'sf_config_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'test',
'sf_module_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'modules',
// SF_APP_DIR sub-directories names
'sf_app_i18n_dir_name' => $sf_app_i18n_dir_name = 'i18n',
'sf_app_config_dir_name' => $sf_app_config_dir_name = 'config',
'sf_app_lib_dir_name' => $sf_app_lib_dir_name = 'lib',
'sf_app_module_dir_name' => $sf_app_module_dir_name = 'modules',
'sf_app_template_dir_name' => $sf_app_template_dir_name = 'templates',
// SF_APP_DIR directory structure
'sf_app_config_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_config_dir_name,
'sf_app_lib_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_lib_dir_name,
'sf_app_module_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_module_dir_name,
'sf_app_template_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_template_dir_name,
'sf_app_i18n_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_i18n_dir_name,
// SF_APP_MODULE_DIR sub-directories names
'sf_app_module_action_dir_name' => 'actions',
'sf_app_module_template_dir_name' => 'templates',
'sf_app_module_lib_dir_name' => 'lib',
'sf_app_module_view_dir_name' => 'views',
'sf_app_module_validate_dir_name' => 'validate',
'sf_app_module_config_dir_name' => 'config',
'sf_app_module_i18n_dir_name' => 'i18n',
));
// Remove temporary variables
foreach (array_diff(array_keys(get_defined_vars()), $usedVars) as $var) {
unset($$var);
}

View File

@@ -0,0 +1,37 @@
- %SF_SYMFONY_LIB_DIR%/action/sfComponent.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfAction.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActions.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStack.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStackEntry.class.php
#- %SF_SYMFONY_LIB_DIR%/config/sfLoader.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfController.class.php
- %SF_SYMFONY_LIB_DIR%/database/sfDatabaseManager.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfCommonFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfExecutionFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfRenderingFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilterChain.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfStorage.class.php
- %SF_SYMFONY_LIB_DIR%/user/sfUser.class.php
- %SF_SYMFONY_LIB_DIR%/util/sfContext.class.php
- %SF_SYMFONY_LIB_DIR%/validator/sfValidatorManager.class.php
#- %SF_SYMFONY_LIB_DIR%/util/sfParameterHolder.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfView.class.php
# these classes are optionals but very likely to be used (in web context)
#- %SF_SYMFONY_LIB_DIR%/controller/sfRouting.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfWebController.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfFrontWebController.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfWebRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfWebResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfSessionStorage.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfPHPView.class.php
# output escaper
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaper.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperArrayDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperGetterDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperIteratorDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperObjectDecorator.class.php

View File

@@ -0,0 +1,23 @@
default:
controller:
class: sfFrontWebController
request:
class: sfWebRequest
response:
class: sfWebResponse
user:
class: myUser
storage:
class: sfSessionStorage
param:
session_name: symfony
view_cache:
class: sfFileCache
param:
automaticCleaningFactor: 0
cacheDir: %SF_TEMPLATE_CACHE_DIR%

View File

@@ -0,0 +1,38 @@
# rendering filter must be the first registered filter
rendering:
class: sfRenderingFilter
param:
type: rendering
web_debug:
class: sfWebDebugFilter
param:
condition: %SF_WEB_DEBUG%
# security filter must have a type of security
security:
class: sfBasicSecurityFilter
param:
type: security
condition: %SF_USE_SECURITY%
# generally, you will want to insert your own filters here
cache:
class: sfCacheFilter
param:
condition: %SF_CACHE%
common:
class: sfCommonFilter
flash:
class: sfFlashFilter
param:
condition: %SF_USE_FLASH%
# execution filter must be the last registered filter
execution:
class: sfExecutionFilter
param:
type: execution

View File

@@ -0,0 +1,7 @@
default:
default_culture: en
source: XLIFF
debug: off
cache: on
untranslated_prefix: "[T]"
untranslated_suffix: "[/T]"

View File

@@ -0,0 +1,16 @@
default:
enabled: on
level: debug
rotate: off
period: 7
history: 10
purge: on
loggers:
sf_web_debug:
class: sfWebDebugLogger
param:
condition: %SF_WEB_DEBUG%
sf_file_debug:
class: sfFileLogger
param:
file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

View File

@@ -0,0 +1,16 @@
default:
deliver: on
mailer: smtp
domain: localhost.localdomain
hostname: localhost
port: 25
username: ''
password: ''
wordwrap: 80
.headers:
priority: 3
content_type: text/plain
charset: utf-8
encoding: 8bit

View File

@@ -0,0 +1,4 @@
default:
enabled: on
view_class: sfPHP
is_internal: off

View File

@@ -0,0 +1,14 @@
set:
magic_quotes_runtime: off
log_errors: on
arg_separator.output: |
&amp;
#check:
# zend.ze1_compatibility_mode: off
warn:
magic_quotes_gpc: off
register_globals: off
session.auto_start: off

View File

@@ -0,0 +1,82 @@
default:
.actions:
default_module: default # Default module and action to be called when
default_action: index # A routing rule doesn't set it
error_404_module: default # To be called when a 404 error is raised
error_404_action: error404 # Or when the requested URL doesn't match any route
login_module: default # To be called when a non-authenticated user
login_action: login # Tries to access a secure page
secure_module: default # To be called when a user doesn't have
secure_action: secure # The credentials required for an action
module_disabled_module: default # To be called when a user requests
module_disabled_action: disabled # A module disabled in the module.yml
unavailable_module: default # To be called when a user requests a page
unavailable_action: unavailable # From an application disabled via the available setting below
.settings:
available: on # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
# Optional features. Deactivating unused features boots performance a bit.
use_database: on # Enable database manager. Set to off if you don't use a database.
use_security: on # Enable security features (login and credentials). Set to off for public applications.
use_flash: on # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
i18n: off # Enable interface translation. Set to off if your application should not be translated.
check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
# Output escaping settings
escaping_strategy: bc # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
escaping_method: ESC_ENTITIES # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
# Routing settings
suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
no_script_name: off # Enable the front controller name in generated URLs
# Validation settings, used for error generation by the Validation helper
validation_error_prefix: ' &darr;&nbsp;'
validation_error_suffix: ' &nbsp;&darr;'
validation_error_class: form_error
validation_error_id_prefix: error_for_
# Cache settings
cache: off # Enable the template cache
etag: on # Enable etag handling
# Logging and debugging settings
web_debug: off # Enable the web debug toolbar
error_reporting: <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
# Assets paths
rich_text_js_dir: js/tiny_mce
prototype_web_dir: /sf/prototype
admin_web_dir: /sf/sf_admin
web_debug_web_dir: /sf/sf_web_debug
calendar_web_dir: /sf/calendar
# Helpers included in all templates by default
standard_helpers: [Partial, Cache, Form]
# Activated modules from plugins or from the symfony core
enabled_modules: [default]
# Charset used for the response
charset: utf-8
# Miscellaneous
strip_comments: on # Remove comments in core framework classes as defined in the core_compile.yml
autoloading_functions: ~ # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
timeout: 1800 # Session timeout, in seconds
max_forwards: 5
path_info_array: SERVER
path_info_key: PATH_INFO
url_format: PATH
# ORM
orm: propel

View File

@@ -0,0 +1 @@
default:

View File

@@ -0,0 +1,41 @@
K 25
svn:wc:ra_dav:version-url
V 67
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data
END
error_messages.yml
K 25
svn:wc:ra_dav:version-url
V 86
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/error_messages.yml
END
mime_types.php
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/mime_types.php
END
mime_types.dat
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/mime_types.dat
END
exception.php
K 25
svn:wc:ra_dav:version-url
V 81
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/exception.php
END
SANDBOX_README
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/SANDBOX_README
END
exception.txt
K 25
svn:wc:ra_dav:version-url
V 81
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/data/exception.txt
END

View File

@@ -0,0 +1,232 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/data
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
error_messages.yml
file
2010-07-31T05:42:46.000000Z
59c77316dff60ecc6e26eda7cd49080b
2009-05-28T02:14:48.119086Z
25
ben
1491
mime_types.php
file
2010-07-31T05:42:46.000000Z
86bb95d2a6bf8c964fa5768f9edfdd22
2009-05-28T02:14:48.119086Z
25
ben
11105
mime_types.dat
file
2010-07-31T05:42:46.000000Z
d707b1b288d947a86ac80fdf903773de
2009-05-28T02:14:48.119086Z
25
ben
15479
exception.php
file
2010-07-31T05:42:46.000000Z
4ae6246d0eb1d5576486fa625ec1d5cd
2009-05-28T02:14:48.119086Z
25
ben
4900
SANDBOX_README
file
2010-07-31T05:42:46.000000Z
fcb7d30588e2e7bec33ec4cfceaccee1
2009-05-28T02:14:48.119086Z
25
ben
3454
exception.txt
file
2010-07-31T05:42:46.000000Z
de4e0c49c0cabcfcab1f4e2d01d1a64a
2009-05-28T02:14:48.119086Z
25
ben
343

View File

@@ -0,0 +1,100 @@
symfony sandbox
===============
Thank you for downloading the symfony sandbox. This pre-configured symfony
project will allow you to experiment with the symfony framework immediately,
without any installation or configuration.
Quick start
-----------
The sandbox project will work "out of the box", provided that you extract the
.tgz archive under the root web directory configured for your server (usually
`web/`).
After unpacking the archive, test the sandbox by requesting the following URL:
http://localhost/sf_sandbox/web/
You should see a congratulations page.
Command line
------------
If you are in the `sf_sandbox/` directory, you can use the command line to do
usual site management operations. For instance, to clear the cache, type:
$ ./symfony.sh clear-cache (*nix)
symfony clear-cache (Windows)
To discover all the available actions of the symfony command line, type:
$ ./symfony.sh -T (*nix)
symfony -T (Windows)
Environments
------------
The sandbox already contains one application called `frontend`, accessible
through two environments:
- the default environment is the `prod` one, in which the application is fast
but outputs few error messages
- the `dev` environment is slower but gives access to a lot of information
about the current request
To access the `frontend` application in the `dev` environment, type:
http://localhost/sf_sandbox/web/frontend_dev.php/
(don't forget the final /)
Modules
-------
To create a new module `mymodule`, just type in the command line:
$ ./symfony.sh init-module frontend mymodule (*nix)
symfony init-module frontend mymodule (Windows)
To access it, call:
http://localhost/sf_sandbox/web/mymodule
If, at this point, you meet an error, this means that your web server doesn't
support mod_rewrite. Delete the `.htaccess` file from the `web/` directory and
call instead:
http://localhost/sf_sandbox/web/index.php/mymodule
What's in the sandbox?
----------------------
The sandbox is an empty symfony project where all the required libraries
(symfony, pake, creole, propel and phing) are already included (in the
`sf_sandbox/lib/` directory). It is configured to work without any
configuration if unpacked under the web root, but you can install it anywhere
in your disk. In this case,
- delete the 22nd line of the `sf_sandbox/apps/frontend/config/settings.yml`
(`relative_url_root: /sf_sandbox/web/`)
- create a virtual host in your web server configuration to address the
`sf_sandbox/web` directory
The sandbox is intended for you to practice with symfony in a local computer,
not really to develop complex applications that may end up on the web.
However, the version of symfony shipped with the sandbox is fully functional
and equivalent to the one you can install via PEAR.
Beware that the sandbox is not upgradeable.
Happy symfony!
--------------
Feel free to experiment and try the various techniques described in the
www.symfony-project.com website. All the tutorials can also work in a sandbox.
But in the long run, if you decide to go on with symfony, we advise you to
switch to a PEAR installation, which will guarantee you with the possibility
to use the latest patches and enhancements.
The symfony team
http://www.symfony-project.com/

View File

@@ -0,0 +1,42 @@
errors:
err0001: |
Symfony enforces some `php.ini` values through the `php.yml` configuration file (under `check` category).
It seems you have a key in your `php.ini` configuration file with a "un-authorized" value (according to the symfony `php.yml` configuration file).
How can you fix this problem?
* change the value in `php.ini`
* change the `php.yml` file (you must copy the original file referenced in the error message to `yourpoject/config/php.yml` to override it)
* add `php_value magic_quotes_gpc 0` to the .htaccess of your project
Here is a sample `php.yml` file:
set:
magic_quotes_runtime: off
log_errors: on
arg_separator.output: \&amp;
check:
magic_quotes_gpc: off
register_globals: off
err0002: |
You want to check a `php.ini` value but the key you specified doesn't exist in `php.ini`.
err0003: |
A class failed to autoload.
If you run in your production environment and the class is located in a
symfony autoload directory (lib, app/lib, app/module/lib), you should try to clear the
symfony cache:
symfony clear-cache
The mapping between class and file names is done by the autoload.yml configuration file
and the result is cached.
For example, if you just added a new model class and launched a `symfony build-model`,
you should always clear the cache in the all environments that have SF_DEBUG to false.

View File

@@ -0,0 +1,61 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>symfony exception</title>
<style>
body { margin: 0; padding: 20px; margin-top: 20px; background-color: #eee }
body, td, th { font: 11px Verdana, Arial, sans-serif; color: #333 }
a { color: #333 }
h1 { margin: 0 0 0 10px; padding: 10px 0 10px 0; font-weight: bold; font-size: 120% }
h2 { margin: 0; padding: 5px 0; font-size: 110% }
ul { padding-left: 20px; list-style: decimal }
ul li { padding-bottom: 5px; margin: 0 }
ol { font-family: monospace; white-space: pre; list-style-position: inside; margin: 0; padding: 10px 0 }
ol li { margin: -5px; padding: 0 }
ol .selected { font-weight: bold; background-color: #ddd; padding: 2px 0 }
table.vars { padding: 0; margin: 0; border: 1px solid #999; background-color: #fff; }
table.vars th { padding: 2px; background-color: #ddd; font-weight: bold }
table.vars td { padding: 2px; font-family: monospace; white-space: pre }
p.error { padding: 10px; background-color: #f00; font-weight: bold; text-align: center; -moz-border-radius: 10px; }
p.error a { color: #fff }
#main { padding: 20px; padding-left: 70px; border: 1px solid #ddd; background-color: #fff; text-align:left; -moz-border-radius: 10px; min-width: 13em; max-width: 52em }
#message { padding: 10px; margin-bottom: 10px; background-color: #eee; -moz-border-radius: 10px }
</style>
<script type="text/javascript">
function toggle(id)
{
el = document.getElementById(id); el.style.display = el.style.display == 'none' ? 'block' : 'none';
}
</script>
</head>
<body>
<center><div id="main">
<div style="float: right"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAZCAYAAAAiwE4nAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEfklEQVRIx7VUa0wUVxT+Znd2FxZk0YKACAtaGwEDUhUTBTEIItmKYk3UNqalD7StMSQ1JKatP5omTYyx0VRrjPERX7XWAG2t9GVi3drU2h+gi4BCWV67lOe6O/uYmXtPf0BRrMBK6UlObmbON9935p6HQEQI1o7uXeSy1dsjHn2Xlpr0oKzililoEiIKymvOr9q+pzyZZN894moHcbWDZN892lOeTN9fKHgrWB5NsInZ7joOrtv4JgR2F4r0AxTpRwisEes2bsNtW+eBYHmCEqw8kVsp6oy6jMUFYIoTxFUQqWBqNzIWr4aoC9NVnlxZNSWC1mqLsa6ubd36zbug+m3gXBlypoCYAuavx4Ytu1Fbay+2VluME/GJEwHsnT3WpLlzhbi4Z6D46gBosP/gVQDA669kIzJSRWxcApLnPie0dw3cALBw0k1z5dyKrIqyWHL1/Eye7n3kcX5MH75fRAAIAJUUZ5Cnez9JPYfI1XuDKsriqOZcbtakm6alte/yqsIi6LVt4KobxAIAqSPxwUEJxAPgqgcG0YH8NS+gxT5wZVI1/PrU0q1O54OoFfmvQZZsIBYA5zIy0maOYFZmJ4GYAuIyZG8jcvLfgMPhmnHlbG7pUws2NfUeWVvyMpj3d3DVB84C4MyPxNkP+8I0TQRn/qGY6gP316J4w6uob3AceirBzw9nnBD1RmN65nLIUhOIBUBcBjEZ5viQEZx5thFcdQ+50o+A5w7SM5dBFHWhFz5bdOpJ3MLjq63mdHrIr7f6PaXbPtBGht4DUwYAQXikyVTkb/gKtbYBNFpzYYoY3egarR6D7jCcPmtly5ZEh6/ZWucfdyycPep3ycmJ2phoAzx9ziERLoMzN4hJAICI8KEkp4VxcCaP+p4zGdHTw2FOiNB2OTzfAMgf80qrjmem1zf256zf9B6kvmvgqgeqrw2qvx1cGQRxBcQV5GRFIGepaeT5cfdJXbAUPY+79z15l47MWzDmH7a3P/g2Ly9X4O6LkKUWEPeOMbwMpnANiClPDkOBXteL3OXxQnNL72UA5n/V8NLR9Bdrb/ddLN+5VvD23wTA8d9MgNH0LD759DrS5oeUbN7RWjXqSu//OXi8sCBFkN11IFJAxMZ0e4cP12+6xsUQqZC9nShclYTWtsDJUTU8cyDlsE7URqTMC4Eiu8fN+/JVF7I3NuGlna2wlDaPi1VkN1LnR0GvF00n95kPAICm+tgcQ9N9V5ll9Tz4JSem2vySE5bCFDS3+t+uPjbHIA64dF/MioU2aoYGXndgQgJLngnWL0PR1iUje0n4hHimBhA1XYA5IVz8q1eu0oSGqCc6HV4ihAIQgso6MV4flNhDUR/iYqbBI1GqZtM7zVUzZ4p3rl5rQIgxesqvVCsa0O8y4Lc/nGp8rLhcBIA7Df7C7hlKe2ZGojYmZsGUCsqygvOnf6FZsbrtm3bY+wUigiAIC/funlXR0RXYgv/BzAmGn979qGvXyOALghAJQAtAB0A/fIrDY6MNurj/LBqADW8OFYACQB4+2d80or7Ra0ZtxAAAAABJRU5ErkJggg==" /></div>
<h1>[<?php echo $name ?>]</h1>
<h2 id="message"><?php echo $message ?></h2>
<?php if ($error_reference): ?>
<p class="error"><a href='http://www.symfony-project.org/errors/<?php echo $error_reference ?>'>learn more about this issue</a></p>
<?php endif; ?>
<h2>stack trace</h2>
<ul><li><?php echo implode('</li><li>', $traces) ?></li></ul>
<h2>symfony settings <a href="#" onclick="toggle('sf_settings'); return false;">...</a></h2>
<div id="sf_settings" style="display: none"><?php echo $settingsTable ?></div>
<h2>request <a href="#" onclick="toggle('sf_request'); return false;">...</a></h2>
<div id="sf_request" style="display: none"><?php echo $requestTable ?></div>
<h2>response <a href="#" onclick="toggle('sf_response'); return false;">...</a></h2>
<div id="sf_response" style="display: none"><?php echo $responseTable ?></div>
<h2>global vars <a href="#" onclick="toggle('sf_globals'); return false;">...</a></h2>
<div id="sf_globals" style="display: none"><?php echo $globalsTable ?></div>
<p id="footer">
symfony v.<?php echo file_get_contents(sfConfig::get('sf_symfony_lib_dir').'/VERSION') ?> - php <?php echo PHP_VERSION ?><br />
for help resolving this issue, please visit <a href="http://www.symfony-project.org/">http://www.symfony-project.org/</a>.
</p>
</div></center>
</body>
</html>

View File

@@ -0,0 +1,11 @@
[exception] <?php echo $name ?>
[message] <?php echo $message ?>
<?php if (count($traces) > 0): ?>
[stack trace]
<?php foreach ($traces as $line): ?>
<?php echo $line ?>
<?php endforeach; ?>
<?php endif; ?>
[symfony] v. <?php echo sfConfig::get('sf_version') ?> (symfony-project.com)
[PHP] v. <?php echo PHP_VERSION ?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,420 @@
<?php
$data = preg_match_all('/^([a-z0-9\/_\.+-]+) ([a-z0-9_]+)$/mi', file_get_contents(__FILE__), $matches, PREG_SET_ORDER);
$mime_types = array();
foreach ($matches as $match)
{
$mime_types[strtolower($match[1])] = strtolower($match[2]);
}
file_put_contents(dirname(__FILE__).'/mime_types.dat', serialize($mime_types));
/*
application/andrew-inset ez
application/appledouble base64
application/applefile base64
application/commonground dp
application/cprplayer pqi
application/dsptype tsp
application/excel xls
application/font-tdpfr pfr
application/futuresplash spl
application/hstu stk
application/hyperstudio stk
application/javascript js
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/mbed mbd
application/mirage mfp
application/msword doc
application/ocsp-request orq
application/ocsp-response ors
application/octet-stream bin
application/octet-stream exe
application/oda oda
application/ogg ogg
application/pdf pdf
application/pgp-encrypted 7bit
application/pgp-keys 7bit
application/pgp-signature sig
application/pkcs10 p10
application/pkcs7-mime p7m
application/pkcs7-signature p7s
application/pkix-cert cer
application/pkix-crl crl
application/pkix-pkipath pkipath
application/pkixcmp pki
application/postscript ai
application/postscript eps
application/postscript ps
application/presentations shw
application/prs.cww cw
application/prs.nprend rnd
application/quest qrt
application/rtf rtf
application/sgml-open-catalog soc
application/sieve siv
application/smil smi
application/toolbook tbk
application/vnd.3gpp.pic-bw-large plb
application/vnd.3gpp.pic-bw-small psb
application/vnd.3gpp.pic-bw-var pvb
application/vnd.3gpp.sms sms
application/vnd.acucorp atc
application/vnd.adobe.xfdf xfdf
application/vnd.amiga.amu ami
application/vnd.blueice.multipass mpm
application/vnd.cinderella cdy
application/vnd.cosmocaller cmc
application/vnd.criticaltools.wbs+xml wbs
application/vnd.curl curl
application/vnd.data-vision.rdz rdz
application/vnd.dreamfactory dfac
application/vnd.fsc.weblauch fsc
application/vnd.genomatix.tuxedo txd
application/vnd.hbci hbci
application/vnd.hhe.lesson-player les
application/vnd.hp-hpgl plt
application/vnd.ibm.electronic-media emm
application/vnd.ibm.rights-management irm
application/vnd.ibm.secure-container sc
application/vnd.ipunplugged.rcprofile rcprofile
application/vnd.irepository.package+xml irp
application/vnd.jisp jisp
application/vnd.kde.karbon karbon
application/vnd.kde.kchart chrt
application/vnd.kde.kformula kfo
application/vnd.kde.kivio flw
application/vnd.kde.kontour kon
application/vnd.kde.kpresenter kpr
application/vnd.kde.kspread ksp
application/vnd.kde.kword kwd
application/vnd.kenameapp htke
application/vnd.kidspiration kia
application/vnd.kinar kne
application/vnd.llamagraphics.life-balance.desktop lbd
application/vnd.llamagraphics.life-balance.exchange+xml lbe
application/vnd.lotus-1-2-3 wks
application/vnd.mcd mcd
application/vnd.mfmp mfm
application/vnd.micrografx.flo flo
application/vnd.micrografx.igx igx
application/vnd.mif mif
application/vnd.mophun.application mpn
application/vnd.mophun.certificate mpc
application/vnd.mozilla.xul+xml xul
application/vnd.ms-artgalry cil
application/vnd.ms-asf asf
application/vnd.ms-excel xls
application/vnd.ms-lrm lrm
application/vnd.ms-powerpoint ppt
application/vnd.ms-project mpp
application/vnd.ms-tnef base64
application/vnd.ms-works base64
application/vnd.ms-wpl wpl
application/vnd.mseq mseq
application/vnd.nervana ent
application/vnd.nokia.radio-preset rpst
application/vnd.nokia.radio-presets rpss
application/vnd.palm prc
application/vnd.picsel efif
application/vnd.pvi.ptid1 pti
application/vnd.quark.quarkxpress qxd
application/vnd.sealed.doc sdoc
application/vnd.sealed.eml seml
application/vnd.sealed.mht smht
application/vnd.sealed.ppt sppt
application/vnd.sealed.xls sxls
application/vnd.sealedmedia.softseal.html stml
application/vnd.sealedmedia.softseal.pdf spdf
application/vnd.seemail see
application/vnd.smaf mmf
application/vnd.sun.xml.calc sxc
application/vnd.sun.xml.calc.template stc
application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.writer.template stw
application/vnd.sus-calendar sus
application/vnd.vidsoft.vidconference vsc
application/vnd.visio vsd
application/vnd.visionary vis
application/vnd.wap.sic sic
application/vnd.wap.slc slc
application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.webturbo wtb
application/vnd.wordperfect wpd
application/vnd.wqd wqd
application/vnd.wv.csp+wbxml wv
application/vnd.wv.csp+xml 8bit
application/vnd.wv.ssp+xml 8bit
application/vnd.yamaha.hv-dic hvd
application/vnd.yamaha.hv-script hvs
application/vnd.yamaha.hv-voice hvp
application/vnd.yamaha.smaf-audio saf
application/vnd.yamaha.smaf-phrase spf
application/vocaltec-media-desc vmd
application/vocaltec-media-file vmf
application/vocaltec-talker vtk
application/watcherinfo+xml wif
application/wordperfect5.1 wp5
application/x-123 wk
application/x-7th_level_event 7ls
application/x-authorware-bin aab
application/x-authorware-map aam
application/x-authorware-seg aas
application/x-bcpio bcpio
application/x-bleeper bleep
application/x-bzip2 bz2
application/x-cdlink vcd
application/x-chat chat
application/x-chess-pgn pgn
application/x-compress z
application/x-cpio cpio
application/x-cprplayer pqf
application/x-csh csh
application/x-cu-seeme csm
application/x-cult3d-object co
application/x-debian-package deb
application/x-director dcr
application/x-director dir
application/x-director dxr
application/x-dvi dvi
application/x-envoy evy
application/x-futuresplash spl
application/x-gtar gtar
application/x-gzip gz
application/x-hdf hdf
application/x-hep hep
application/x-html+ruby rhtml
application/x-httpd-miva mv
application/x-httpd-php phtml
application/x-ica ica
application/x-imagemap imagemap
application/x-ipix ipx
application/x-ipscript ips
application/x-java-archive jar
application/x-java-jnlp-file jnlp
application/x-java-serialized-object ser
application/x-java-vm class
application/x-javascript js
application/x-koan skp
application/x-latex latex
application/x-mac-compactpro cpt
application/x-maker frm
application/x-mathcad mcd
application/x-midi mid
application/x-mif mif
application/x-msaccess mda
application/x-msdos-program cmd
application/x-msdos-program com
application/x-msdownload base64
application/x-msexcel xls
application/x-msword doc
application/x-netcdf nc
application/x-ns-proxy-autoconfig pac
application/x-pagemaker pm5
application/x-perl pl
application/x-pn-realmedia rp
application/x-python py
application/x-quicktimeplayer qtl
application/x-rar-compressed rar
application/x-ruby rb
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-sprite spr
application/x-spss sav
application/x-spt spt
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo
application/x-troff t
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-twinvq vqf
application/x-twinvq-plugin vqe
application/x-ustar ustar
application/x-vmsbackup bck
application/x-wais-source src
application/x-wingz wz
application/x-word base64
application/x-wordperfect6.1 wp6
application/x-x509-ca-cert crt
application/x-zip-compressed zip
application/xhtml+xml xhtml
application/zip zip
audio/3gpp 3gpp
audio/amr amr
audio/amr-wb awb
audio/basic au
audio/evrc evc
audio/l16 l16
audio/midi mid
audio/mpeg mp3
audio/mpeg mpga
audio/prs.sid sid
audio/qcelp qcp
audio/smv smv
audio/vnd.audiokoz koz
audio/vnd.digital-winds eol
audio/vnd.everad.plj plj
audio/vnd.lucent.voice lvp
audio/vnd.nokia.mobile-xmf mxmf
audio/vnd.nortel.vbk vbk
audio/vnd.nuera.ecelp4800 ecelp4800
audio/vnd.nuera.ecelp7470 ecelp7470
audio/vnd.nuera.ecelp9600 ecelp9600
audio/vnd.sealedmedia.softseal.mpeg smp3
audio/voxware vox
audio/x-aiff aif
audio/x-mid mid
audio/x-midi mid
audio/x-mpeg mp2
audio/x-mpegurl mpu
audio/x-pn-realaudio ra
audio/x-pn-realaudio rm
audio/x-pn-realaudio-plugin rpm
audio/x-realaudio ra
audio/x-wav wav
chemical/x-csml csm
chemical/x-embl-dl-nucleotide emb
chemical/x-gaussian-cube cube
chemical/x-gaussian-input gau
chemical/x-jcamp-dx jdx
chemical/x-mdl-molfile mol
chemical/x-mdl-rxnfile rxn
chemical/x-mdl-tgf tgf
chemical/x-mopac-input mop
chemical/x-pdb pdb
chemical/x-rasmol scr
chemical/x-xyz xyz
drawing/dwf dwf
drawing/x-dwf dwf
i-world/i-vrml ivr
image/bmp bmp
image/cewavelet wif
image/cis-cod cod
image/fif fif
image/gif gif
image/ief ief
image/jp2 jp2
image/jpeg jpeg
image/jpeg jpg
image/jpm jpm
image/jpx jpf
image/pict pic
image/pjpeg jpg
image/png png
image/targa tga
image/tiff tif
image/tiff tiff
image/vn-svf svf
image/vnd.dgn dgn
image/vnd.djvu djvu
image/vnd.dwg dwg
image/vnd.glocalgraphics.pgb pgb
image/vnd.microsoft.icon ico
image/vnd.ms-modi mdi
image/vnd.sealed.png spng
image/vnd.sealedmedia.softseal.gif sgif
image/vnd.sealedmedia.softseal.jpg sjpg
image/vnd.wap.wbmp wbmp
image/x-bmp bmp
image/x-cmu-raster ras
image/x-freehand fh4
image/x-png png
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/external-body 8bit
message/news 8bit
message/partial 8bit
message/rfc822 8bit
model/iges igs
model/mesh msh
model/vnd.parasolid.transmit.binary x_b
model/vnd.parasolid.transmit.text x_t
model/vrml vrm
model/vrml wrl
multipart/alternative 8bit
multipart/appledouble 8bit
multipart/digest 8bit
multipart/mixed 8bit
multipart/parallel 8bit
text/comma-separated-values csv
text/css css
text/html htm
text/html html
text/plain txt
text/prs.fallenstein.rst rst
text/richtext rtx
text/rtf rtf
text/sgml sgm
text/sgml sgml
text/tab-separated-values tsv
text/vnd.net2phone.commcenter.command ccc
text/vnd.sun.j2me.app-descriptor jad
text/vnd.wap.si si
text/vnd.wap.sl sl
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
text/x-hdml hdml
text/x-setext etx
text/x-sgml sgml
text/x-speech talk
text/x-vcalendar vcs
text/x-vcard vcf
text/xml xml
ulead/vrml uvr
video/3gpp 3gp
video/dl dl
video/gl gl
video/mj2 mj2
video/mpeg mp2
video/mpeg mpeg
video/mpeg mpg
video/quicktime mov
video/quicktime qt
video/vdo vdo
video/vivo viv
video/vnd.fvt fvt
video/vnd.mpegurl mxu
video/vnd.nokia.interleaved-multimedia nim
video/vnd.objectvideo mp4
video/vnd.sealed.mpeg1 s11
video/vnd.sealed.mpeg4 smpg
video/vnd.sealed.swf sswf
video/vnd.sealedmedia.softseal.mov smov
video/vnd.vivo viv
video/vnd.vivo vivo
video/x-fli fli
video/x-ms-asf asf
video/x-ms-wmv wmv
video/x-msvideo avi
video/x-sgi-movie movie
x-chemical/x-pdb pdb
x-chemical/x-xyz xyz
x-conference/x-cooltalk ice
x-drawing/dwf dwf
x-world/x-d96 d
x-world/x-svr svr
x-world/x-vream vrw
x-world/x-vrml wrl
*/

View File

@@ -0,0 +1,100 @@
symfony sandbox
===============
Thank you for downloading the symfony sandbox. This pre-configured symfony
project will allow you to experiment with the symfony framework immediately,
without any installation or configuration.
Quick start
-----------
The sandbox project will work "out of the box", provided that you extract the
.tgz archive under the root web directory configured for your server (usually
`web/`).
After unpacking the archive, test the sandbox by requesting the following URL:
http://localhost/sf_sandbox/web/
You should see a congratulations page.
Command line
------------
If you are in the `sf_sandbox/` directory, you can use the command line to do
usual site management operations. For instance, to clear the cache, type:
$ ./symfony.sh clear-cache (*nix)
symfony clear-cache (Windows)
To discover all the available actions of the symfony command line, type:
$ ./symfony.sh -T (*nix)
symfony -T (Windows)
Environments
------------
The sandbox already contains one application called `frontend`, accessible
through two environments:
- the default environment is the `prod` one, in which the application is fast
but outputs few error messages
- the `dev` environment is slower but gives access to a lot of information
about the current request
To access the `frontend` application in the `dev` environment, type:
http://localhost/sf_sandbox/web/frontend_dev.php/
(don't forget the final /)
Modules
-------
To create a new module `mymodule`, just type in the command line:
$ ./symfony.sh init-module frontend mymodule (*nix)
symfony init-module frontend mymodule (Windows)
To access it, call:
http://localhost/sf_sandbox/web/mymodule
If, at this point, you meet an error, this means that your web server doesn't
support mod_rewrite. Delete the `.htaccess` file from the `web/` directory and
call instead:
http://localhost/sf_sandbox/web/index.php/mymodule
What's in the sandbox?
----------------------
The sandbox is an empty symfony project where all the required libraries
(symfony, pake, creole, propel and phing) are already included (in the
`sf_sandbox/lib/` directory). It is configured to work without any
configuration if unpacked under the web root, but you can install it anywhere
in your disk. In this case,
- delete the 22nd line of the `sf_sandbox/apps/frontend/config/settings.yml`
(`relative_url_root: /sf_sandbox/web/`)
- create a virtual host in your web server configuration to address the
`sf_sandbox/web` directory
The sandbox is intended for you to practice with symfony in a local computer,
not really to develop complex applications that may end up on the web.
However, the version of symfony shipped with the sandbox is fully functional
and equivalent to the one you can install via PEAR.
Beware that the sandbox is not upgradeable.
Happy symfony!
--------------
Feel free to experiment and try the various techniques described in the
www.symfony-project.com website. All the tutorials can also work in a sandbox.
But in the long run, if you decide to go on with symfony, we advise you to
switch to a PEAR installation, which will guarantee you with the possibility
to use the latest patches and enhancements.
The symfony team
http://www.symfony-project.com/

View File

@@ -0,0 +1,42 @@
errors:
err0001: |
Symfony enforces some `php.ini` values through the `php.yml` configuration file (under `check` category).
It seems you have a key in your `php.ini` configuration file with a "un-authorized" value (according to the symfony `php.yml` configuration file).
How can you fix this problem?
* change the value in `php.ini`
* change the `php.yml` file (you must copy the original file referenced in the error message to `yourpoject/config/php.yml` to override it)
* add `php_value magic_quotes_gpc 0` to the .htaccess of your project
Here is a sample `php.yml` file:
set:
magic_quotes_runtime: off
log_errors: on
arg_separator.output: \&amp;
check:
magic_quotes_gpc: off
register_globals: off
err0002: |
You want to check a `php.ini` value but the key you specified doesn't exist in `php.ini`.
err0003: |
A class failed to autoload.
If you run in your production environment and the class is located in a
symfony autoload directory (lib, app/lib, app/module/lib), you should try to clear the
symfony cache:
symfony clear-cache
The mapping between class and file names is done by the autoload.yml configuration file
and the result is cached.
For example, if you just added a new model class and launched a `symfony build-model`,
you should always clear the cache in the all environments that have SF_DEBUG to false.

View File

@@ -0,0 +1,61 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>symfony exception</title>
<style>
body { margin: 0; padding: 20px; margin-top: 20px; background-color: #eee }
body, td, th { font: 11px Verdana, Arial, sans-serif; color: #333 }
a { color: #333 }
h1 { margin: 0 0 0 10px; padding: 10px 0 10px 0; font-weight: bold; font-size: 120% }
h2 { margin: 0; padding: 5px 0; font-size: 110% }
ul { padding-left: 20px; list-style: decimal }
ul li { padding-bottom: 5px; margin: 0 }
ol { font-family: monospace; white-space: pre; list-style-position: inside; margin: 0; padding: 10px 0 }
ol li { margin: -5px; padding: 0 }
ol .selected { font-weight: bold; background-color: #ddd; padding: 2px 0 }
table.vars { padding: 0; margin: 0; border: 1px solid #999; background-color: #fff; }
table.vars th { padding: 2px; background-color: #ddd; font-weight: bold }
table.vars td { padding: 2px; font-family: monospace; white-space: pre }
p.error { padding: 10px; background-color: #f00; font-weight: bold; text-align: center; -moz-border-radius: 10px; }
p.error a { color: #fff }
#main { padding: 20px; padding-left: 70px; border: 1px solid #ddd; background-color: #fff; text-align:left; -moz-border-radius: 10px; min-width: 13em; max-width: 52em }
#message { padding: 10px; margin-bottom: 10px; background-color: #eee; -moz-border-radius: 10px }
</style>
<script type="text/javascript">
function toggle(id)
{
el = document.getElementById(id); el.style.display = el.style.display == 'none' ? 'block' : 'none';
}
</script>
</head>
<body>
<center><div id="main">
<div style="float: right"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAZCAYAAAAiwE4nAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEfklEQVRIx7VUa0wUVxT+Znd2FxZk0YKACAtaGwEDUhUTBTEIItmKYk3UNqalD7StMSQ1JKatP5omTYyx0VRrjPERX7XWAG2t9GVi3drU2h+gi4BCWV67lOe6O/uYmXtPf0BRrMBK6UlObmbON9935p6HQEQI1o7uXeSy1dsjHn2Xlpr0oKzililoEiIKymvOr9q+pzyZZN894moHcbWDZN892lOeTN9fKHgrWB5NsInZ7joOrtv4JgR2F4r0AxTpRwisEes2bsNtW+eBYHmCEqw8kVsp6oy6jMUFYIoTxFUQqWBqNzIWr4aoC9NVnlxZNSWC1mqLsa6ubd36zbug+m3gXBlypoCYAuavx4Ytu1Fbay+2VluME/GJEwHsnT3WpLlzhbi4Z6D46gBosP/gVQDA669kIzJSRWxcApLnPie0dw3cALBw0k1z5dyKrIqyWHL1/Eye7n3kcX5MH75fRAAIAJUUZ5Cnez9JPYfI1XuDKsriqOZcbtakm6alte/yqsIi6LVt4KobxAIAqSPxwUEJxAPgqgcG0YH8NS+gxT5wZVI1/PrU0q1O54OoFfmvQZZsIBYA5zIy0maOYFZmJ4GYAuIyZG8jcvLfgMPhmnHlbG7pUws2NfUeWVvyMpj3d3DVB84C4MyPxNkP+8I0TQRn/qGY6gP316J4w6uob3AceirBzw9nnBD1RmN65nLIUhOIBUBcBjEZ5viQEZx5thFcdQ+50o+A5w7SM5dBFHWhFz5bdOpJ3MLjq63mdHrIr7f6PaXbPtBGht4DUwYAQXikyVTkb/gKtbYBNFpzYYoY3egarR6D7jCcPmtly5ZEh6/ZWucfdyycPep3ycmJ2phoAzx9ziERLoMzN4hJAICI8KEkp4VxcCaP+p4zGdHTw2FOiNB2OTzfAMgf80qrjmem1zf256zf9B6kvmvgqgeqrw2qvx1cGQRxBcQV5GRFIGepaeT5cfdJXbAUPY+79z15l47MWzDmH7a3P/g2Ly9X4O6LkKUWEPeOMbwMpnANiClPDkOBXteL3OXxQnNL72UA5n/V8NLR9Bdrb/ddLN+5VvD23wTA8d9MgNH0LD759DrS5oeUbN7RWjXqSu//OXi8sCBFkN11IFJAxMZ0e4cP12+6xsUQqZC9nShclYTWtsDJUTU8cyDlsE7URqTMC4Eiu8fN+/JVF7I3NuGlna2wlDaPi1VkN1LnR0GvF00n95kPAICm+tgcQ9N9V5ll9Tz4JSem2vySE5bCFDS3+t+uPjbHIA64dF/MioU2aoYGXndgQgJLngnWL0PR1iUje0n4hHimBhA1XYA5IVz8q1eu0oSGqCc6HV4ihAIQgso6MV4flNhDUR/iYqbBI1GqZtM7zVUzZ4p3rl5rQIgxesqvVCsa0O8y4Lc/nGp8rLhcBIA7Df7C7hlKe2ZGojYmZsGUCsqygvOnf6FZsbrtm3bY+wUigiAIC/funlXR0RXYgv/BzAmGn979qGvXyOALghAJQAtAB0A/fIrDY6MNurj/LBqADW8OFYACQB4+2d80or7Ra0ZtxAAAAABJRU5ErkJggg==" /></div>
<h1>[<?php echo $name ?>]</h1>
<h2 id="message"><?php echo $message ?></h2>
<?php if ($error_reference): ?>
<p class="error"><a href='http://www.symfony-project.org/errors/<?php echo $error_reference ?>'>learn more about this issue</a></p>
<?php endif; ?>
<h2>stack trace</h2>
<ul><li><?php echo implode('</li><li>', $traces) ?></li></ul>
<h2>symfony settings <a href="#" onclick="toggle('sf_settings'); return false;">...</a></h2>
<div id="sf_settings" style="display: none"><?php echo $settingsTable ?></div>
<h2>request <a href="#" onclick="toggle('sf_request'); return false;">...</a></h2>
<div id="sf_request" style="display: none"><?php echo $requestTable ?></div>
<h2>response <a href="#" onclick="toggle('sf_response'); return false;">...</a></h2>
<div id="sf_response" style="display: none"><?php echo $responseTable ?></div>
<h2>global vars <a href="#" onclick="toggle('sf_globals'); return false;">...</a></h2>
<div id="sf_globals" style="display: none"><?php echo $globalsTable ?></div>
<p id="footer">
symfony v.<?php echo file_get_contents(sfConfig::get('sf_symfony_lib_dir').'/VERSION') ?> - php <?php echo PHP_VERSION ?><br />
for help resolving this issue, please visit <a href="http://www.symfony-project.org/">http://www.symfony-project.org/</a>.
</p>
</div></center>
</body>
</html>

View File

@@ -0,0 +1,11 @@
[exception] <?php echo $name ?>
[message] <?php echo $message ?>
<?php if (count($traces) > 0): ?>
[stack trace]
<?php foreach ($traces as $line): ?>
<?php echo $line ?>
<?php endforeach; ?>
<?php endif; ?>
[symfony] v. <?php echo sfConfig::get('sf_version') ?> (symfony-project.com)
[PHP] v. <?php echo PHP_VERSION ?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,420 @@
<?php
$data = preg_match_all('/^([a-z0-9\/_\.+-]+) ([a-z0-9_]+)$/mi', file_get_contents(__FILE__), $matches, PREG_SET_ORDER);
$mime_types = array();
foreach ($matches as $match)
{
$mime_types[strtolower($match[1])] = strtolower($match[2]);
}
file_put_contents(dirname(__FILE__).'/mime_types.dat', serialize($mime_types));
/*
application/andrew-inset ez
application/appledouble base64
application/applefile base64
application/commonground dp
application/cprplayer pqi
application/dsptype tsp
application/excel xls
application/font-tdpfr pfr
application/futuresplash spl
application/hstu stk
application/hyperstudio stk
application/javascript js
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/mbed mbd
application/mirage mfp
application/msword doc
application/ocsp-request orq
application/ocsp-response ors
application/octet-stream bin
application/octet-stream exe
application/oda oda
application/ogg ogg
application/pdf pdf
application/pgp-encrypted 7bit
application/pgp-keys 7bit
application/pgp-signature sig
application/pkcs10 p10
application/pkcs7-mime p7m
application/pkcs7-signature p7s
application/pkix-cert cer
application/pkix-crl crl
application/pkix-pkipath pkipath
application/pkixcmp pki
application/postscript ai
application/postscript eps
application/postscript ps
application/presentations shw
application/prs.cww cw
application/prs.nprend rnd
application/quest qrt
application/rtf rtf
application/sgml-open-catalog soc
application/sieve siv
application/smil smi
application/toolbook tbk
application/vnd.3gpp.pic-bw-large plb
application/vnd.3gpp.pic-bw-small psb
application/vnd.3gpp.pic-bw-var pvb
application/vnd.3gpp.sms sms
application/vnd.acucorp atc
application/vnd.adobe.xfdf xfdf
application/vnd.amiga.amu ami
application/vnd.blueice.multipass mpm
application/vnd.cinderella cdy
application/vnd.cosmocaller cmc
application/vnd.criticaltools.wbs+xml wbs
application/vnd.curl curl
application/vnd.data-vision.rdz rdz
application/vnd.dreamfactory dfac
application/vnd.fsc.weblauch fsc
application/vnd.genomatix.tuxedo txd
application/vnd.hbci hbci
application/vnd.hhe.lesson-player les
application/vnd.hp-hpgl plt
application/vnd.ibm.electronic-media emm
application/vnd.ibm.rights-management irm
application/vnd.ibm.secure-container sc
application/vnd.ipunplugged.rcprofile rcprofile
application/vnd.irepository.package+xml irp
application/vnd.jisp jisp
application/vnd.kde.karbon karbon
application/vnd.kde.kchart chrt
application/vnd.kde.kformula kfo
application/vnd.kde.kivio flw
application/vnd.kde.kontour kon
application/vnd.kde.kpresenter kpr
application/vnd.kde.kspread ksp
application/vnd.kde.kword kwd
application/vnd.kenameapp htke
application/vnd.kidspiration kia
application/vnd.kinar kne
application/vnd.llamagraphics.life-balance.desktop lbd
application/vnd.llamagraphics.life-balance.exchange+xml lbe
application/vnd.lotus-1-2-3 wks
application/vnd.mcd mcd
application/vnd.mfmp mfm
application/vnd.micrografx.flo flo
application/vnd.micrografx.igx igx
application/vnd.mif mif
application/vnd.mophun.application mpn
application/vnd.mophun.certificate mpc
application/vnd.mozilla.xul+xml xul
application/vnd.ms-artgalry cil
application/vnd.ms-asf asf
application/vnd.ms-excel xls
application/vnd.ms-lrm lrm
application/vnd.ms-powerpoint ppt
application/vnd.ms-project mpp
application/vnd.ms-tnef base64
application/vnd.ms-works base64
application/vnd.ms-wpl wpl
application/vnd.mseq mseq
application/vnd.nervana ent
application/vnd.nokia.radio-preset rpst
application/vnd.nokia.radio-presets rpss
application/vnd.palm prc
application/vnd.picsel efif
application/vnd.pvi.ptid1 pti
application/vnd.quark.quarkxpress qxd
application/vnd.sealed.doc sdoc
application/vnd.sealed.eml seml
application/vnd.sealed.mht smht
application/vnd.sealed.ppt sppt
application/vnd.sealed.xls sxls
application/vnd.sealedmedia.softseal.html stml
application/vnd.sealedmedia.softseal.pdf spdf
application/vnd.seemail see
application/vnd.smaf mmf
application/vnd.sun.xml.calc sxc
application/vnd.sun.xml.calc.template stc
application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.writer.template stw
application/vnd.sus-calendar sus
application/vnd.vidsoft.vidconference vsc
application/vnd.visio vsd
application/vnd.visionary vis
application/vnd.wap.sic sic
application/vnd.wap.slc slc
application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.webturbo wtb
application/vnd.wordperfect wpd
application/vnd.wqd wqd
application/vnd.wv.csp+wbxml wv
application/vnd.wv.csp+xml 8bit
application/vnd.wv.ssp+xml 8bit
application/vnd.yamaha.hv-dic hvd
application/vnd.yamaha.hv-script hvs
application/vnd.yamaha.hv-voice hvp
application/vnd.yamaha.smaf-audio saf
application/vnd.yamaha.smaf-phrase spf
application/vocaltec-media-desc vmd
application/vocaltec-media-file vmf
application/vocaltec-talker vtk
application/watcherinfo+xml wif
application/wordperfect5.1 wp5
application/x-123 wk
application/x-7th_level_event 7ls
application/x-authorware-bin aab
application/x-authorware-map aam
application/x-authorware-seg aas
application/x-bcpio bcpio
application/x-bleeper bleep
application/x-bzip2 bz2
application/x-cdlink vcd
application/x-chat chat
application/x-chess-pgn pgn
application/x-compress z
application/x-cpio cpio
application/x-cprplayer pqf
application/x-csh csh
application/x-cu-seeme csm
application/x-cult3d-object co
application/x-debian-package deb
application/x-director dcr
application/x-director dir
application/x-director dxr
application/x-dvi dvi
application/x-envoy evy
application/x-futuresplash spl
application/x-gtar gtar
application/x-gzip gz
application/x-hdf hdf
application/x-hep hep
application/x-html+ruby rhtml
application/x-httpd-miva mv
application/x-httpd-php phtml
application/x-ica ica
application/x-imagemap imagemap
application/x-ipix ipx
application/x-ipscript ips
application/x-java-archive jar
application/x-java-jnlp-file jnlp
application/x-java-serialized-object ser
application/x-java-vm class
application/x-javascript js
application/x-koan skp
application/x-latex latex
application/x-mac-compactpro cpt
application/x-maker frm
application/x-mathcad mcd
application/x-midi mid
application/x-mif mif
application/x-msaccess mda
application/x-msdos-program cmd
application/x-msdos-program com
application/x-msdownload base64
application/x-msexcel xls
application/x-msword doc
application/x-netcdf nc
application/x-ns-proxy-autoconfig pac
application/x-pagemaker pm5
application/x-perl pl
application/x-pn-realmedia rp
application/x-python py
application/x-quicktimeplayer qtl
application/x-rar-compressed rar
application/x-ruby rb
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-sprite spr
application/x-spss sav
application/x-spt spt
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo
application/x-troff t
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-twinvq vqf
application/x-twinvq-plugin vqe
application/x-ustar ustar
application/x-vmsbackup bck
application/x-wais-source src
application/x-wingz wz
application/x-word base64
application/x-wordperfect6.1 wp6
application/x-x509-ca-cert crt
application/x-zip-compressed zip
application/xhtml+xml xhtml
application/zip zip
audio/3gpp 3gpp
audio/amr amr
audio/amr-wb awb
audio/basic au
audio/evrc evc
audio/l16 l16
audio/midi mid
audio/mpeg mp3
audio/mpeg mpga
audio/prs.sid sid
audio/qcelp qcp
audio/smv smv
audio/vnd.audiokoz koz
audio/vnd.digital-winds eol
audio/vnd.everad.plj plj
audio/vnd.lucent.voice lvp
audio/vnd.nokia.mobile-xmf mxmf
audio/vnd.nortel.vbk vbk
audio/vnd.nuera.ecelp4800 ecelp4800
audio/vnd.nuera.ecelp7470 ecelp7470
audio/vnd.nuera.ecelp9600 ecelp9600
audio/vnd.sealedmedia.softseal.mpeg smp3
audio/voxware vox
audio/x-aiff aif
audio/x-mid mid
audio/x-midi mid
audio/x-mpeg mp2
audio/x-mpegurl mpu
audio/x-pn-realaudio ra
audio/x-pn-realaudio rm
audio/x-pn-realaudio-plugin rpm
audio/x-realaudio ra
audio/x-wav wav
chemical/x-csml csm
chemical/x-embl-dl-nucleotide emb
chemical/x-gaussian-cube cube
chemical/x-gaussian-input gau
chemical/x-jcamp-dx jdx
chemical/x-mdl-molfile mol
chemical/x-mdl-rxnfile rxn
chemical/x-mdl-tgf tgf
chemical/x-mopac-input mop
chemical/x-pdb pdb
chemical/x-rasmol scr
chemical/x-xyz xyz
drawing/dwf dwf
drawing/x-dwf dwf
i-world/i-vrml ivr
image/bmp bmp
image/cewavelet wif
image/cis-cod cod
image/fif fif
image/gif gif
image/ief ief
image/jp2 jp2
image/jpeg jpeg
image/jpeg jpg
image/jpm jpm
image/jpx jpf
image/pict pic
image/pjpeg jpg
image/png png
image/targa tga
image/tiff tif
image/tiff tiff
image/vn-svf svf
image/vnd.dgn dgn
image/vnd.djvu djvu
image/vnd.dwg dwg
image/vnd.glocalgraphics.pgb pgb
image/vnd.microsoft.icon ico
image/vnd.ms-modi mdi
image/vnd.sealed.png spng
image/vnd.sealedmedia.softseal.gif sgif
image/vnd.sealedmedia.softseal.jpg sjpg
image/vnd.wap.wbmp wbmp
image/x-bmp bmp
image/x-cmu-raster ras
image/x-freehand fh4
image/x-png png
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/external-body 8bit
message/news 8bit
message/partial 8bit
message/rfc822 8bit
model/iges igs
model/mesh msh
model/vnd.parasolid.transmit.binary x_b
model/vnd.parasolid.transmit.text x_t
model/vrml vrm
model/vrml wrl
multipart/alternative 8bit
multipart/appledouble 8bit
multipart/digest 8bit
multipart/mixed 8bit
multipart/parallel 8bit
text/comma-separated-values csv
text/css css
text/html htm
text/html html
text/plain txt
text/prs.fallenstein.rst rst
text/richtext rtx
text/rtf rtf
text/sgml sgm
text/sgml sgml
text/tab-separated-values tsv
text/vnd.net2phone.commcenter.command ccc
text/vnd.sun.j2me.app-descriptor jad
text/vnd.wap.si si
text/vnd.wap.sl sl
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
text/x-hdml hdml
text/x-setext etx
text/x-sgml sgml
text/x-speech talk
text/x-vcalendar vcs
text/x-vcard vcf
text/xml xml
ulead/vrml uvr
video/3gpp 3gp
video/dl dl
video/gl gl
video/mj2 mj2
video/mpeg mp2
video/mpeg mpeg
video/mpeg mpg
video/quicktime mov
video/quicktime qt
video/vdo vdo
video/vivo viv
video/vnd.fvt fvt
video/vnd.mpegurl mxu
video/vnd.nokia.interleaved-multimedia nim
video/vnd.objectvideo mp4
video/vnd.sealed.mpeg1 s11
video/vnd.sealed.mpeg4 smpg
video/vnd.sealed.swf sswf
video/vnd.sealedmedia.softseal.mov smov
video/vnd.vivo viv
video/vnd.vivo vivo
video/x-fli fli
video/x-ms-asf asf
video/x-ms-wmv wmv
video/x-msvideo avi
video/x-sgi-movie movie
x-chemical/x-pdb pdb
x-chemical/x-xyz xyz
x-conference/x-cooltalk ice
x-drawing/dwf dwf
x-world/x-d96 d
x-world/x-svr svr
x-world/x-vream vrw
x-world/x-vrml wrl
*/

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 72
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator
END

View File

@@ -0,0 +1,34 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
sfPropelAdmin
dir
sfPropelCrud
dir

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 86
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin
END

View File

@@ -0,0 +1,31 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
default
dir

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 94
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default
END

View File

@@ -0,0 +1,34 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
skeleton
dir
template
dir

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 103
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton
END

View File

@@ -0,0 +1,34 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions
dir
config
dir

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 111
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/actions
END
actions.class.php
K 25
svn:wc:ra_dav:version-url
V 129
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/actions/actions.class.php
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/actions
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions.class.php
file
2010-07-31T05:42:44.000000Z
5c15859726259f3529835b6877d895cf
2009-05-28T02:14:48.119086Z
25
ben
286

View File

@@ -0,0 +1,13 @@
<?php
/**
* ##MODULE_NAME## actions.
*
* @package ##PROJECT_NAME##
* @subpackage ##MODULE_NAME##
* @author ##AUTHOR_NAME##
* @version SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
*/
class ##MODULE_NAME##Actions extends auto##MODULE_NAME##Actions
{
}

View File

@@ -0,0 +1,13 @@
<?php
/**
* ##MODULE_NAME## actions.
*
* @package ##PROJECT_NAME##
* @subpackage ##MODULE_NAME##
* @author ##AUTHOR_NAME##
* @version SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
*/
class ##MODULE_NAME##Actions extends auto##MODULE_NAME##Actions
{
}

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 110
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/config
END
generator.yml
K 25
svn:wc:ra_dav:version-url
V 124
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/config/generator.yml
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/skeleton/config
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
generator.yml
file
2010-07-31T05:42:44.000000Z
b529ad3a89387d6094c2ef3f565a8356
2009-05-28T02:14:48.119086Z
25
ben
135

View File

@@ -0,0 +1,5 @@
generator:
class: sfPropelAdminGenerator
param:
model_class: ##MODEL_CLASS##
theme: ##THEME##

View File

@@ -0,0 +1,5 @@
generator:
class: sfPropelAdminGenerator
param:
model_class: ##MODEL_CLASS##
theme: ##THEME##

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 103
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template
END

View File

@@ -0,0 +1,34 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions
dir
templates
dir

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 111
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/actions
END
actions.class.php
K 25
svn:wc:ra_dav:version-url
V 129
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/actions/actions.class.php
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/actions
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions.class.php
file
2010-07-31T05:42:44.000000Z
b3445fbf44572cbf3fb8f27e2fa60688
2009-05-28T02:14:48.119086Z
25
ben
20462

View File

@@ -0,0 +1,435 @@
[?php
/**
* <?php echo $this->getGeneratedModuleName() ?> actions.
*
* @package ##PROJECT_NAME##
* @subpackage <?php echo $this->getGeneratedModuleName() ?>
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id: actions.class.php 7997 2008-03-20 12:29:34Z noel $
*/
class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions
{
public function executeIndex()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
}
public function executeList()
{
$this->processSort();
$this->processFilters();
<?php if ($this->getParameterValue('list.filters')): ?>
$this->filters = $this->getUser()->getAttributeHolder()->getAll('sf_admin/<?php echo $this->getSingularName() ?>/filters');
<?php endif ?>
// pager
$this->pager = new sfPropelPager('<?php echo $this->getClassName() ?>', <?php echo $this->getParameterValue('list.max_per_page', 20) ?>);
$c = new Criteria();
$this->addSortCriteria($c);
$this->addFiltersCriteria($c);
$this->pager->setCriteria($c);
$this->pager->setPage($this->getRequestParameter('page', 1));
<?php if ($this->getParameterValue('list.peer_method')): ?>
$this->pager->setPeerMethod('<?php echo $this->getParameterValue('list.peer_method') ?>');
<?php endif ?>
<?php if ($this->getParameterValue('list.peer_count_method')): ?>
$this->pager->setPeerCountMethod('<?php echo $this->getParameterValue('list.peer_count_method') ?>');
<?php endif ?>
$this->pager->init();
}
public function executeCreate()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
}
public function executeSave()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
}
public function executeEdit()
{
$this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
if ($this->getRequest()->getMethod() == sfRequest::POST)
{
$this->update<?php echo $this->getClassName() ?>FromRequest();
$this->save<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
$this->setFlash('notice', 'Your modifications have been saved');
if ($this->getRequestParameter('save_and_add'))
{
return $this->redirect('<?php echo $this->getModuleName() ?>/create');
}
else if ($this->getRequestParameter('save_and_list'))
{
return $this->redirect('<?php echo $this->getModuleName() ?>/list');
}
else
{
return $this->redirect('<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams('this->') ?>);
}
}
else
{
$this->labels = $this->getLabels();
}
}
public function executeDelete()
{
$this-><?php echo $this->getSingularName() ?> = <?php echo $this->getClassName() ?>Peer::retrieveByPk(<?php echo $this->getRetrieveByPkParamsForAction(40) ?>);
$this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
try
{
$this->delete<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
}
catch (PropelException $e)
{
$this->getRequest()->setError('delete', 'Could not delete the selected <?php echo sfInflector::humanize($this->getSingularName()) ?>. Make sure it does not have any associated items.');
return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
}
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
$currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$this-><?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>();
if (is_file($currentFile))
{
unlink($currentFile);
}
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
return $this->redirect('<?php echo $this->getModuleName() ?>/list');
}
public function handleErrorEdit()
{
$this->preExecute();
$this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
$this->update<?php echo $this->getClassName() ?>FromRequest();
$this->labels = $this->getLabels();
return sfView::SUCCESS;
}
protected function save<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
{
$<?php echo $this->getSingularName() ?>->save();
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): $type = $column->getCreoleType(); ?>
<?php $name = $column->getName() ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php
$user_params = $this->getParameterValue('edit.fields.'.$column->getName().'.params');
$user_params = is_array($user_params) ? $user_params : sfToolkit::stringToArray($user_params);
$through_class = isset($user_params['through_class']) ? $user_params['through_class'] : '';
?>
<?php if ($through_class): ?>
<?php
$class = $this->getClassName();
$related_class = sfPropelManyToMany::getRelatedClass($class, $through_class);
$related_table = constant($related_class.'Peer::TABLE_NAME');
$middle_table = constant($through_class.'Peer::TABLE_NAME');
$this_table = constant($class.'Peer::TABLE_NAME');
$related_column = sfPropelManyToMany::getRelatedColumn($class, $through_class);
$column = sfPropelManyToMany::getColumn($class, $through_class);
?>
<?php if ($input_type == 'admin_double_list' || $input_type == 'admin_check_list' || $input_type == 'admin_select_list'): ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
if ($this->getUser()->hasCredential(<?php echo $credentials ?>))
{
<?php endif; ?>
// Update many-to-many for "<?php echo $name ?>"
$c = new Criteria();
$c->add(<?php echo $through_class ?>Peer::<?php echo strtoupper($column->getColumnName()) ?>, $<?php echo $this->getSingularName() ?>->getPrimaryKey());
<?php echo $through_class ?>Peer::doDelete($c);
$ids = $this->getRequestParameter('associated_<?php echo $name ?>');
if (is_array($ids))
{
foreach ($ids as $id)
{
$<?php echo ucfirst($through_class) ?> = new <?php echo $through_class ?>();
$<?php echo ucfirst($through_class) ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>->getPrimaryKey());
$<?php echo ucfirst($through_class) ?>->set<?php echo $related_column->getPhpName() ?>($id);
$<?php echo ucfirst($through_class) ?>->save();
}
}
<?php if ($credentials): ?>
}
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
}
protected function delete<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
{
$<?php echo $this->getSingularName() ?>->delete();
}
protected function update<?php echo $this->getClassName() ?>FromRequest()
{
$<?php echo $this->getSingularName() ?> = $this->getRequestParameter('<?php echo $this->getSingularName() ?>');
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): $type = $column->getCreoleType(); ?>
<?php $name = $column->getName() ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php if ($column->isPrimaryKey() || $input_type == 'plain') continue ?>
<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
if ($this->getUser()->hasCredential(<?php echo $credentials ?>))
{
<?php endif; ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
$currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$this-><?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>();
if (!$this->getRequest()->hasErrors() && isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>_remove']))
{
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>('');
if (is_file($currentFile))
{
unlink($currentFile);
}
}
if (!$this->getRequest()->hasErrors() && $this->getRequest()->getFileSize('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]'))
{
<?php elseif ($type != CreoleTypes::BOOLEAN): ?>
if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
{
<?php endif; ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php if ($this->getParameterValue('edit.fields.'.$column->getName().'.filename')): ?>
$fileName = "<?php echo str_replace('"', '\\"', $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.filename'))) ?>";
<?php else: ?>
$fileName = md5($this->getRequest()->getFileName('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]').time().rand(0, 99999));
<?php endif ?>
$ext = $this->getRequest()->getFileExtension('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]');
if (is_file($currentFile))
{
unlink($currentFile);
}
$this->getRequest()->moveFile('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]', sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$fileName.$ext);
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($fileName.$ext);
<?php elseif ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
if ($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])
{
try
{
$dateFormat = new sfDateFormat($this->getUser()->getCulture());
<?php $inputPattern = $type == CreoleTypes::DATE ? 'd' : 'g'; ?>
<?php $outputPattern = $type == CreoleTypes::DATE ? 'i' : 'I'; ?>
if (!is_array($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
{
$value = $dateFormat->format($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'], '<?php echo $outputPattern ?>', $dateFormat->getInputPattern('<?php echo $inputPattern ?>'));
}
else
{
$value_array = $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'];
$value = $value_array['year'].'-'.$value_array['month'].'-'.$value_array['day'].(isset($value_array['hour']) ? ' '.$value_array['hour'].':'.$value_array['minute'].(isset($value_array['second']) ? ':'.$value_array['second'] : '') : '');
}
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($value);
}
catch (sfException $e)
{
// not a date
}
}
else
{
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(null);
}
<?php elseif ($type == CreoleTypes::BOOLEAN): ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']) ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : 0);
<?php elseif ($column->isForeignKey()): ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : null);
<?php else: ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']);
<?php endif; ?>
<?php if ($type != CreoleTypes::BOOLEAN): ?>
}
<?php endif; ?>
<?php if ($credentials): ?>
}
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
}
protected function get<?php echo $this->getClassName() ?>OrCreate(<?php echo $this->getMethodParamsForGetOrCreate() ?>)
{
if (<?php echo $this->getTestPksForGetOrCreate() ?>)
{
$<?php echo $this->getSingularName() ?> = new <?php echo $this->getClassName() ?>();
}
else
{
$<?php echo $this->getSingularName() ?> = <?php echo $this->getClassName() ?>Peer::retrieveByPk(<?php echo $this->getRetrieveByPkParamsForGetOrCreate() ?>);
$this->forward404Unless($<?php echo $this->getSingularName() ?>);
}
return $<?php echo $this->getSingularName() ?>;
}
protected function processFilters()
{
<?php if ($this->getParameterValue('list.filters')): ?>
if ($this->getRequest()->hasParameter('filter'))
{
$filters = $this->getRequestParameter('filters');
<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
<?php if ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
if (isset($filters['<?php echo $column->getName() ?>']['from']) && $filters['<?php echo $column->getName() ?>']['from'] !== '')
{
$filters['<?php echo $column->getName() ?>']['from'] = sfI18N::getTimestampForCulture($filters['<?php echo $column->getName() ?>']['from'], $this->getUser()->getCulture());
}
if (isset($filters['<?php echo $column->getName() ?>']['to']) && $filters['<?php echo $column->getName() ?>']['to'] !== '')
{
$filters['<?php echo $column->getName() ?>']['to'] = sfI18N::getTimestampForCulture($filters['<?php echo $column->getName() ?>']['to'], $this->getUser()->getCulture());
}
<?php endif; ?>
<?php endforeach; ?>
$this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/<?php echo $this->getSingularName() ?>/filters');
$this->getUser()->getAttributeHolder()->add($filters, 'sf_admin/<?php echo $this->getSingularName() ?>/filters');
}
<?php endif; ?>
}
protected function processSort()
{
if ($this->getRequestParameter('sort'))
{
$this->getUser()->setAttribute('sort', $this->getRequestParameter('sort'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', $this->getRequestParameter('type', 'asc'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
}
if (!$this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
{
<?php if ($sort = $this->getParameterValue('list.sort')): ?>
<?php if (is_array($sort)): ?>
$this->getUser()->setAttribute('sort', '<?php echo $sort[0] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', '<?php echo $sort[1] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
<?php else: ?>
$this->getUser()->setAttribute('sort', '<?php echo $sort ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
<?php endif; ?>
<?php endif; ?>
}
}
protected function addFiltersCriteria($c)
{
<?php if ($this->getParameterValue('list.filters')): ?>
<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
<?php if (($column->isPartial() || $column->isComponent()) && $this->getParameterValue('list.fields.'.$column->getName().'.filter_criteria_disabled')) continue ?>
if (isset($this->filters['<?php echo $column->getName() ?>_is_empty']))
{
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, '');
$criterion->addOr($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, null, Criteria::ISNULL));
$c->add($criterion);
}
<?php if ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
else if (isset($this->filters['<?php echo $column->getName() ?>']))
{
if (isset($this->filters['<?php echo $column->getName() ?>']['from']) && $this->filters['<?php echo $column->getName() ?>']['from'] !== '')
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['from']), Criteria::GREATER_EQUAL);
<?php else: ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['from'], Criteria::GREATER_EQUAL);
<?php endif; ?>
}
if (isset($this->filters['<?php echo $column->getName() ?>']['to']) && $this->filters['<?php echo $column->getName() ?>']['to'] !== '')
{
if (isset($criterion))
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion->addAnd($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['to']), Criteria::LESS_EQUAL));
<?php else: ?>
$criterion->addAnd($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['to'], Criteria::LESS_EQUAL));
<?php endif; ?>
}
else
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['to']), Criteria::LESS_EQUAL);
<?php else: ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['to'], Criteria::LESS_EQUAL);
<?php endif; ?>
}
}
if (isset($criterion))
{
$c->add($criterion);
}
}
<?php else: ?>
else if (isset($this->filters['<?php echo $column->getName() ?>']) && $this->filters['<?php echo $column->getName() ?>'] !== '')
{
<?php if ($type == CreoleTypes::CHAR || $type == CreoleTypes::VARCHAR || $type == CreoleTypes::LONGVARCHAR): ?>
$c->add(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, strtr($this->filters['<?php echo $column->getName() ?>'], '*', '%'), Criteria::LIKE);
<?php else: ?>
$c->add(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']);
<?php endif; ?>
}
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
}
protected function addSortCriteria($c)
{
if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
{
$sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME);
if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc')
{
$c->addAscendingOrderByColumn($sort_column);
}
else
{
$c->addDescendingOrderByColumn($sort_column);
}
}
}
protected function getLabels()
{
return array(
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
'<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}' => '<?php $label_name = str_replace("'", "\\'", $this->getParameterValue('edit.fields.'.$column->getName().'.name')); echo $label_name ?><?php if ($label_name): ?>:<?php endif ?>',
<?php endforeach; ?>
<?php endforeach; ?>
);
}
}

View File

@@ -0,0 +1,435 @@
[?php
/**
* <?php echo $this->getGeneratedModuleName() ?> actions.
*
* @package ##PROJECT_NAME##
* @subpackage <?php echo $this->getGeneratedModuleName() ?>
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id: actions.class.php 7997 2008-03-20 12:29:34Z noel $
*/
class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions
{
public function executeIndex()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
}
public function executeList()
{
$this->processSort();
$this->processFilters();
<?php if ($this->getParameterValue('list.filters')): ?>
$this->filters = $this->getUser()->getAttributeHolder()->getAll('sf_admin/<?php echo $this->getSingularName() ?>/filters');
<?php endif ?>
// pager
$this->pager = new sfPropelPager('<?php echo $this->getClassName() ?>', <?php echo $this->getParameterValue('list.max_per_page', 20) ?>);
$c = new Criteria();
$this->addSortCriteria($c);
$this->addFiltersCriteria($c);
$this->pager->setCriteria($c);
$this->pager->setPage($this->getRequestParameter('page', 1));
<?php if ($this->getParameterValue('list.peer_method')): ?>
$this->pager->setPeerMethod('<?php echo $this->getParameterValue('list.peer_method') ?>');
<?php endif ?>
<?php if ($this->getParameterValue('list.peer_count_method')): ?>
$this->pager->setPeerCountMethod('<?php echo $this->getParameterValue('list.peer_count_method') ?>');
<?php endif ?>
$this->pager->init();
}
public function executeCreate()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
}
public function executeSave()
{
return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
}
public function executeEdit()
{
$this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
if ($this->getRequest()->getMethod() == sfRequest::POST)
{
$this->update<?php echo $this->getClassName() ?>FromRequest();
$this->save<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
$this->setFlash('notice', 'Your modifications have been saved');
if ($this->getRequestParameter('save_and_add'))
{
return $this->redirect('<?php echo $this->getModuleName() ?>/create');
}
else if ($this->getRequestParameter('save_and_list'))
{
return $this->redirect('<?php echo $this->getModuleName() ?>/list');
}
else
{
return $this->redirect('<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams('this->') ?>);
}
}
else
{
$this->labels = $this->getLabels();
}
}
public function executeDelete()
{
$this-><?php echo $this->getSingularName() ?> = <?php echo $this->getClassName() ?>Peer::retrieveByPk(<?php echo $this->getRetrieveByPkParamsForAction(40) ?>);
$this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
try
{
$this->delete<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
}
catch (PropelException $e)
{
$this->getRequest()->setError('delete', 'Could not delete the selected <?php echo sfInflector::humanize($this->getSingularName()) ?>. Make sure it does not have any associated items.');
return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
}
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
$currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$this-><?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>();
if (is_file($currentFile))
{
unlink($currentFile);
}
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
return $this->redirect('<?php echo $this->getModuleName() ?>/list');
}
public function handleErrorEdit()
{
$this->preExecute();
$this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
$this->update<?php echo $this->getClassName() ?>FromRequest();
$this->labels = $this->getLabels();
return sfView::SUCCESS;
}
protected function save<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
{
$<?php echo $this->getSingularName() ?>->save();
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): $type = $column->getCreoleType(); ?>
<?php $name = $column->getName() ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php
$user_params = $this->getParameterValue('edit.fields.'.$column->getName().'.params');
$user_params = is_array($user_params) ? $user_params : sfToolkit::stringToArray($user_params);
$through_class = isset($user_params['through_class']) ? $user_params['through_class'] : '';
?>
<?php if ($through_class): ?>
<?php
$class = $this->getClassName();
$related_class = sfPropelManyToMany::getRelatedClass($class, $through_class);
$related_table = constant($related_class.'Peer::TABLE_NAME');
$middle_table = constant($through_class.'Peer::TABLE_NAME');
$this_table = constant($class.'Peer::TABLE_NAME');
$related_column = sfPropelManyToMany::getRelatedColumn($class, $through_class);
$column = sfPropelManyToMany::getColumn($class, $through_class);
?>
<?php if ($input_type == 'admin_double_list' || $input_type == 'admin_check_list' || $input_type == 'admin_select_list'): ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
if ($this->getUser()->hasCredential(<?php echo $credentials ?>))
{
<?php endif; ?>
// Update many-to-many for "<?php echo $name ?>"
$c = new Criteria();
$c->add(<?php echo $through_class ?>Peer::<?php echo strtoupper($column->getColumnName()) ?>, $<?php echo $this->getSingularName() ?>->getPrimaryKey());
<?php echo $through_class ?>Peer::doDelete($c);
$ids = $this->getRequestParameter('associated_<?php echo $name ?>');
if (is_array($ids))
{
foreach ($ids as $id)
{
$<?php echo ucfirst($through_class) ?> = new <?php echo $through_class ?>();
$<?php echo ucfirst($through_class) ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>->getPrimaryKey());
$<?php echo ucfirst($through_class) ?>->set<?php echo $related_column->getPhpName() ?>($id);
$<?php echo ucfirst($through_class) ?>->save();
}
}
<?php if ($credentials): ?>
}
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
}
protected function delete<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
{
$<?php echo $this->getSingularName() ?>->delete();
}
protected function update<?php echo $this->getClassName() ?>FromRequest()
{
$<?php echo $this->getSingularName() ?> = $this->getRequestParameter('<?php echo $this->getSingularName() ?>');
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): $type = $column->getCreoleType(); ?>
<?php $name = $column->getName() ?>
<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
<?php if ($column->isPrimaryKey() || $input_type == 'plain') continue ?>
<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
if ($this->getUser()->hasCredential(<?php echo $credentials ?>))
{
<?php endif; ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
$currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$this-><?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>();
if (!$this->getRequest()->hasErrors() && isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>_remove']))
{
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>('');
if (is_file($currentFile))
{
unlink($currentFile);
}
}
if (!$this->getRequest()->hasErrors() && $this->getRequest()->getFileSize('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]'))
{
<?php elseif ($type != CreoleTypes::BOOLEAN): ?>
if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
{
<?php endif; ?>
<?php if ($input_type == 'admin_input_file_tag'): ?>
<?php if ($this->getParameterValue('edit.fields.'.$column->getName().'.filename')): ?>
$fileName = "<?php echo str_replace('"', '\\"', $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.filename'))) ?>";
<?php else: ?>
$fileName = md5($this->getRequest()->getFileName('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]').time().rand(0, 99999));
<?php endif ?>
$ext = $this->getRequest()->getFileExtension('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]');
if (is_file($currentFile))
{
unlink($currentFile);
}
$this->getRequest()->moveFile('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]', sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$fileName.$ext);
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($fileName.$ext);
<?php elseif ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
if ($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])
{
try
{
$dateFormat = new sfDateFormat($this->getUser()->getCulture());
<?php $inputPattern = $type == CreoleTypes::DATE ? 'd' : 'g'; ?>
<?php $outputPattern = $type == CreoleTypes::DATE ? 'i' : 'I'; ?>
if (!is_array($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
{
$value = $dateFormat->format($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'], '<?php echo $outputPattern ?>', $dateFormat->getInputPattern('<?php echo $inputPattern ?>'));
}
else
{
$value_array = $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'];
$value = $value_array['year'].'-'.$value_array['month'].'-'.$value_array['day'].(isset($value_array['hour']) ? ' '.$value_array['hour'].':'.$value_array['minute'].(isset($value_array['second']) ? ':'.$value_array['second'] : '') : '');
}
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($value);
}
catch (sfException $e)
{
// not a date
}
}
else
{
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(null);
}
<?php elseif ($type == CreoleTypes::BOOLEAN): ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']) ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : 0);
<?php elseif ($column->isForeignKey()): ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : null);
<?php else: ?>
$this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']);
<?php endif; ?>
<?php if ($type != CreoleTypes::BOOLEAN): ?>
}
<?php endif; ?>
<?php if ($credentials): ?>
}
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
}
protected function get<?php echo $this->getClassName() ?>OrCreate(<?php echo $this->getMethodParamsForGetOrCreate() ?>)
{
if (<?php echo $this->getTestPksForGetOrCreate() ?>)
{
$<?php echo $this->getSingularName() ?> = new <?php echo $this->getClassName() ?>();
}
else
{
$<?php echo $this->getSingularName() ?> = <?php echo $this->getClassName() ?>Peer::retrieveByPk(<?php echo $this->getRetrieveByPkParamsForGetOrCreate() ?>);
$this->forward404Unless($<?php echo $this->getSingularName() ?>);
}
return $<?php echo $this->getSingularName() ?>;
}
protected function processFilters()
{
<?php if ($this->getParameterValue('list.filters')): ?>
if ($this->getRequest()->hasParameter('filter'))
{
$filters = $this->getRequestParameter('filters');
<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
<?php if ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
if (isset($filters['<?php echo $column->getName() ?>']['from']) && $filters['<?php echo $column->getName() ?>']['from'] !== '')
{
$filters['<?php echo $column->getName() ?>']['from'] = sfI18N::getTimestampForCulture($filters['<?php echo $column->getName() ?>']['from'], $this->getUser()->getCulture());
}
if (isset($filters['<?php echo $column->getName() ?>']['to']) && $filters['<?php echo $column->getName() ?>']['to'] !== '')
{
$filters['<?php echo $column->getName() ?>']['to'] = sfI18N::getTimestampForCulture($filters['<?php echo $column->getName() ?>']['to'], $this->getUser()->getCulture());
}
<?php endif; ?>
<?php endforeach; ?>
$this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/<?php echo $this->getSingularName() ?>/filters');
$this->getUser()->getAttributeHolder()->add($filters, 'sf_admin/<?php echo $this->getSingularName() ?>/filters');
}
<?php endif; ?>
}
protected function processSort()
{
if ($this->getRequestParameter('sort'))
{
$this->getUser()->setAttribute('sort', $this->getRequestParameter('sort'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', $this->getRequestParameter('type', 'asc'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
}
if (!$this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
{
<?php if ($sort = $this->getParameterValue('list.sort')): ?>
<?php if (is_array($sort)): ?>
$this->getUser()->setAttribute('sort', '<?php echo $sort[0] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', '<?php echo $sort[1] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
<?php else: ?>
$this->getUser()->setAttribute('sort', '<?php echo $sort ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
$this->getUser()->setAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
<?php endif; ?>
<?php endif; ?>
}
}
protected function addFiltersCriteria($c)
{
<?php if ($this->getParameterValue('list.filters')): ?>
<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
<?php if (($column->isPartial() || $column->isComponent()) && $this->getParameterValue('list.fields.'.$column->getName().'.filter_criteria_disabled')) continue ?>
if (isset($this->filters['<?php echo $column->getName() ?>_is_empty']))
{
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, '');
$criterion->addOr($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, null, Criteria::ISNULL));
$c->add($criterion);
}
<?php if ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP): ?>
else if (isset($this->filters['<?php echo $column->getName() ?>']))
{
if (isset($this->filters['<?php echo $column->getName() ?>']['from']) && $this->filters['<?php echo $column->getName() ?>']['from'] !== '')
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['from']), Criteria::GREATER_EQUAL);
<?php else: ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['from'], Criteria::GREATER_EQUAL);
<?php endif; ?>
}
if (isset($this->filters['<?php echo $column->getName() ?>']['to']) && $this->filters['<?php echo $column->getName() ?>']['to'] !== '')
{
if (isset($criterion))
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion->addAnd($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['to']), Criteria::LESS_EQUAL));
<?php else: ?>
$criterion->addAnd($c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['to'], Criteria::LESS_EQUAL));
<?php endif; ?>
}
else
{
<?php if ($type == CreoleTypes::DATE): ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, date('Y-m-d', $this->filters['<?php echo $column->getName() ?>']['to']), Criteria::LESS_EQUAL);
<?php else: ?>
$criterion = $c->getNewCriterion(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']['to'], Criteria::LESS_EQUAL);
<?php endif; ?>
}
}
if (isset($criterion))
{
$c->add($criterion);
}
}
<?php else: ?>
else if (isset($this->filters['<?php echo $column->getName() ?>']) && $this->filters['<?php echo $column->getName() ?>'] !== '')
{
<?php if ($type == CreoleTypes::CHAR || $type == CreoleTypes::VARCHAR || $type == CreoleTypes::LONGVARCHAR): ?>
$c->add(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, strtr($this->filters['<?php echo $column->getName() ?>'], '*', '%'), Criteria::LIKE);
<?php else: ?>
$c->add(<?php echo $this->getPeerClassName() ?>::<?php echo strtoupper($column->getName()) ?>, $this->filters['<?php echo $column->getName() ?>']);
<?php endif; ?>
}
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
}
protected function addSortCriteria($c)
{
if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
{
$sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME);
if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc')
{
$c->addAscendingOrderByColumn($sort_column);
}
else
{
$c->addDescendingOrderByColumn($sort_column);
}
}
}
protected function getLabels()
{
return array(
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
'<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}' => '<?php $label_name = str_replace("'", "\\'", $this->getParameterValue('edit.fields.'.$column->getName().'.name')); echo $label_name ?><?php if ($label_name): ?>:<?php endif ?>',
<?php endforeach; ?>
<?php endforeach; ?>
);
}
}

View File

@@ -0,0 +1,113 @@
K 25
svn:wc:ra_dav:version-url
V 113
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates
END
_list_actions.php
K 25
svn:wc:ra_dav:version-url
V 131
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_actions.php
END
_edit_header.php
K 25
svn:wc:ra_dav:version-url
V 130
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_edit_header.php
END
_list_td_stacked.php
K 25
svn:wc:ra_dav:version-url
V 134
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_td_stacked.php
END
_list_messages.php
K 25
svn:wc:ra_dav:version-url
V 132
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_messages.php
END
_edit_footer.php
K 25
svn:wc:ra_dav:version-url
V 130
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_edit_footer.php
END
_list_th_stacked.php
K 25
svn:wc:ra_dav:version-url
V 134
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_th_stacked.php
END
listSuccess.php
K 25
svn:wc:ra_dav:version-url
V 129
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/listSuccess.php
END
_edit_actions.php
K 25
svn:wc:ra_dav:version-url
V 131
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_edit_actions.php
END
_edit_form.php
K 25
svn:wc:ra_dav:version-url
V 128
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_edit_form.php
END
_filters.php
K 25
svn:wc:ra_dav:version-url
V 126
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_filters.php
END
_list.php
K 25
svn:wc:ra_dav:version-url
V 123
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list.php
END
_edit_messages.php
K 25
svn:wc:ra_dav:version-url
V 132
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_edit_messages.php
END
_list_td_tabular.php
K 25
svn:wc:ra_dav:version-url
V 134
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_td_tabular.php
END
editSuccess.php
K 25
svn:wc:ra_dav:version-url
V 129
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/editSuccess.php
END
_list_th_tabular.php
K 25
svn:wc:ra_dav:version-url
V 134
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_th_tabular.php
END
_list_td_actions.php
K 25
svn:wc:ra_dav:version-url
V 134
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_td_actions.php
END
_list_header.php
K 25
svn:wc:ra_dav:version-url
V 130
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_header.php
END
_list_footer.php
K 25
svn:wc:ra_dav:version-url
V 130
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates/_list_footer.php
END

View File

@@ -0,0 +1,640 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/data/symfony/generator/sfPropelAdmin/default/template/templates
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
_list_actions.php
file
2010-07-31T05:42:44.000000Z
c2de281f9be6e014bb382b2aa4161632
2009-05-28T02:14:48.119086Z
25
ben
441
_edit_header.php
file
2010-07-31T05:42:44.000000Z
d41d8cd98f00b204e9800998ecf8427e
2009-05-28T02:14:48.119086Z
25
ben
0
_list_td_stacked.php
file
2010-07-31T05:42:44.000000Z
a586a14e0e6cb81086d79b4cc563f1ff
2009-05-28T02:14:48.119086Z
25
ben
785
_list_messages.php
file
2010-07-31T05:42:44.000000Z
ba045ac332bd8aa31e47496e9cd51a76
2009-05-28T02:14:48.119086Z
25
ben
322
_edit_footer.php
file
2010-07-31T05:42:44.000000Z
d41d8cd98f00b204e9800998ecf8427e
2009-05-28T02:14:48.119086Z
25
ben
0
_list_th_stacked.php
file
2010-07-31T05:42:44.000000Z
a56f41c8133291c743ea56b5d83146c2
2009-05-28T02:14:48.119086Z
25
ben
44
listSuccess.php
file
2010-07-31T05:42:44.000000Z
b980e7a592fe5a096c2e1770c8c04f1e
2009-05-28T02:14:48.119086Z
25
ben
1111
_edit_actions.php
file
2010-07-31T05:42:44.000000Z
599788fbcbf42755f1b9297cd7b81bdb
2009-05-28T02:14:48.119086Z
25
ben
619
_edit_form.php
file
2010-07-31T05:42:44.000000Z
7076dd193706f99303dcb91494645764
2009-05-28T02:14:48.119086Z
25
ben
3768
_filters.php
file
2010-07-31T05:42:44.000000Z
a7e85d660ee078f2d7714215ca70adb6
2009-05-28T02:14:48.119086Z
25
ben
1844
_list.php
file
2010-07-31T05:42:44.000000Z
57ce4c616546ee9940a57baab11872b7
2009-05-28T02:14:48.119086Z
25
ben
2450
_edit_messages.php
file
2010-07-31T05:42:44.000000Z
d81ccd48c490879a8ecdd1758185f092
2009-05-28T02:14:48.119086Z
25
ben
486
_list_td_tabular.php
file
2010-07-31T05:42:44.000000Z
ebbfcb717d26f4841c26c57770275059
2009-05-28T02:14:48.119086Z
25
ben
923
editSuccess.php
file
2010-07-31T05:42:44.000000Z
815ea1e613f2d8ef462de8eeee34d173
2009-05-28T02:14:48.119086Z
25
ben
1150
_list_th_tabular.php
file
2010-07-31T05:42:44.000000Z
cf07bc656e18ae390e4b7f7706ee4490
2009-05-28T02:14:48.119086Z
25
ben
1794
_list_td_actions.php
file
2010-07-31T05:42:44.000000Z
37f96b05d70df8f26b250b995c6a001f
2009-05-28T02:14:48.119086Z
25
ben
351
_list_header.php
file
2010-07-31T05:42:44.000000Z
d41d8cd98f00b204e9800998ecf8427e
2009-05-28T02:14:48.119086Z
25
ben
0
_list_footer.php
file
2010-07-31T05:42:44.000000Z
d41d8cd98f00b204e9800998ecf8427e
2009-05-28T02:14:48.119086Z
25
ben
0

View File

@@ -0,0 +1,13 @@
<ul class="sf_admin_actions">
<?php $editActions = $this->getParameterValue('edit.actions') ?>
<?php if (null !== $editActions): ?>
<?php foreach ((array) $editActions as $actionName => $params): ?>
<?php if ($actionName == '_delete') continue ?>
<?php echo $this->addCredentialCondition($this->getButtonToAction($actionName, $params, true), $params) ?>
<?php endforeach; ?>
<?php else: ?>
<?php echo $this->getButtonToAction('_list', array(), true) ?>
<?php echo $this->getButtonToAction('_save', array(), true) ?>
<?php echo $this->getButtonToAction('_save_and_add', array(), true) ?>
<?php endif; ?>
</ul>

View File

@@ -0,0 +1,86 @@
[?php echo form_tag('<?php echo $this->getModuleName() ?>/save', array(
'id' => 'sf_admin_edit_form',
'name' => 'sf_admin_edit_form',
'multipart' => true,
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
<?php if (false !== strpos($this->getParameterValue('edit.fields.'.$column->getName().'.type'), 'admin_double_list')): ?>
'onsubmit' => 'double_list_submit(); return true;'
<?php break 2; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
)) ?]
<?php foreach ($this->getPrimaryKey() as $pk): ?>
[?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?]
<?php endforeach; ?>
<?php $first = true ?>
<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
<?php
if ($category[0] == '-')
{
$category_name = substr($category, 1);
$collapse = true;
if ($first)
{
$first = false;
echo "[?php use_javascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype') ?]\n";
echo "[?php use_javascript(sfConfig::get('sf_admin_web_dir').'/js/collapse') ?]\n";
}
}
else
{
$category_name = $category;
$collapse = false;
}
?>
<fieldset id="sf_fieldset_<?php echo preg_replace('/[^a-z0-9_]/', '_', strtolower($category_name)) ?>" class="<?php if ($collapse): ?> collapse<?php endif; ?>">
<?php if ($category != 'NONE'): ?><h2>[?php echo __('<?php echo $category_name ?>') ?]</h2>
<?php endif; ?>
<?php $hides = $this->getParameterValue('edit.hide', array()) ?>
<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
<?php if (in_array($column->getName(), $hides)) continue ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
[?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
<?php endif; ?>
<div class="form-row">
[?php echo label_for('<?php echo $this->getParameterValue("edit.fields.".$column->getName().".label_for", $this->getSingularName()."[".$column->getName()."]") ?>', __($labels['<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}']), '<?php if ($column->isNotNull()): ?>class="required" <?php endif; ?>') ?]
<div class="content[?php if ($sf_request->hasError('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}')): ?] form-error[?php endif; ?]">
[?php if ($sf_request->hasError('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}')): ?]
[?php echo form_error('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}', array('class' => 'form-error-msg')) ?]
[?php endif; ?]
[?php $value = <?php echo $this->getColumnEditTag($column); ?>; echo $value ? $value : '&nbsp;' ?]
<?php echo $this->getHelp($column, 'edit') ?>
</div>
</div>
<?php if ($credentials): ?>
[?php endif; ?]
<?php endif; ?>
<?php endforeach; ?>
</fieldset>
<?php endforeach; ?>
[?php include_partial('edit_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</form>
<ul class="sf_admin_actions">
<?php
/*
* WARNING: delete is a form, it must be outside the main form
*/
$editActions = $this->getParameterValue('edit.actions');
?>
<?php if (null === $editActions || (null !== $editActions && array_key_exists('_delete', $editActions))): ?>
<?php echo $this->addCredentialCondition($this->getButtonToAction('_delete', $editActions['_delete'], true), $editActions['_delete']) ?>
<?php endif; ?>
</ul>

View File

@@ -0,0 +1,15 @@
[?php if ($sf_request->hasErrors()): ?]
<div class="form-errors">
<h2>[?php echo __('The form is not valid because it contains some errors.') ?]</h2>
<dl>
[?php foreach ($sf_request->getErrorNames() as $name): ?]
<dt>[?php echo __($labels[$name]) ?]</dt>
<dd>[?php echo $sf_request->getError($name) ?]</dd>
[?php endforeach; ?]
</dl>
</div>
[?php elseif ($sf_flash->has('notice')): ?]
<div class="save-ok">
<h2>[?php echo __($sf_flash->get('notice')) ?]</h2>
</div>
[?php endif; ?]

View File

@@ -0,0 +1,37 @@
[?php use_helper('Object') ?]
<?php if ($this->getParameterValue('list.filters')): ?>
<div class="sf_admin_filters">
[?php echo form_tag('<?php echo $this->getModuleName() ?>/list', array('method' => 'get')) ?]
<fieldset>
<h2>[?php echo __('filters') ?]</h2>
<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
[?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
<?php endif; ?>
<div class="form-row">
<label for="filters_<?php echo $column->getName() ?>">[?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>:') ?]</label>
<div class="content">
[?php echo <?php echo $this->getColumnFilterTag($column) ?> ?]
<?php if ($this->getParameterValue('list.fields.'.$column->getName().'.filter_is_empty')): ?>
<div>[?php echo checkbox_tag('filters[<?php echo $column->getName() ?>_is_empty]', 1, isset($filters['<?php echo $column->getName() ?>_is_empty']) ? $filters['<?php echo $column->getName() ?>_is_empty'] : null) ?]&nbsp;<label for="filters_<?php echo $column->getName() ?>_is_empty">[?php echo __('is empty') ?]</label></div>
<?php endif; ?>
</div>
</div>
<?php if ($credentials): ?>
[?php endif; ?]
<?php endif; ?>
<?php endforeach; ?>
</fieldset>
<ul class="sf_admin_actions">
<li>[?php echo button_to(__('reset'), '<?php echo $this->getModuleName() ?>/list?filter=filter', 'class=sf_admin_action_reset_filter') ?]</li>
<li>[?php echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter') ?]</li>
</ul>
</form>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,36 @@
<table cellspacing="0" class="sf_admin_list">
<thead>
<tr>
[?php include_partial('list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?]
<?php if ($this->getParameterValue('list.object_actions')): ?>
<th id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th>
<?php endif; ?>
</tr>
</thead>
<tfoot>
<tr><th colspan="<?php echo $this->getParameterValue('list.object_actions') ? count($this->getColumns('list.display')) + 1 : count($this->getColumns('list.display')) ?>">
<div class="float-right">
[?php if ($pager->haveToPaginate()): ?]
[?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/first.png', array('align' => 'absmiddle', 'alt' => __('First'), 'title' => __('First'))), '<?php echo $this->getModuleName() ?>/list?page=1') ?]
[?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/previous.png', array('align' => 'absmiddle', 'alt' => __('Previous'), 'title' => __('Previous'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getPreviousPage()) ?]
[?php foreach ($pager->getLinks() as $page): ?]
[?php echo link_to_unless($page == $pager->getPage(), $page, '<?php echo $this->getModuleName() ?>/list?page='.$page) ?]
[?php endforeach; ?]
[?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/next.png', array('align' => 'absmiddle', 'alt' => __('Next'), 'title' => __('Next'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getNextPage()) ?]
[?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/last.png', array('align' => 'absmiddle', 'alt' => __('Last'), 'title' => __('Last'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getLastPage()) ?]
[?php endif; ?]
</div>
[?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults()) ?]
</th></tr>
</tfoot>
<tbody>
[?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?]
<tr class="sf_admin_row_[?php echo $odd ?]">
[?php include_partial('list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
[?php include_partial('list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</tr>
[?php endforeach; ?]
</tbody>
</table>

View File

@@ -0,0 +1,10 @@
<ul class="sf_admin_actions">
<?php $listActions = $this->getParameterValue('list.actions') ?>
<?php if (null !== $listActions): ?>
<?php foreach ((array) $listActions as $actionName => $params): ?>
<?php echo $this->addCredentialCondition($this->getButtonToAction($actionName, $params, false), $params) ?>
<?php endforeach; ?>
<?php else: ?>
<?php echo $this->getButtonToAction('_create', array(), false) ?>
<?php endif; ?>
</ul>

View File

@@ -0,0 +1,8 @@
[?php if ($sf_request->getError('delete')): ?]
<div class="form-errors">
<h2>[?php echo __('Could not delete the selected %name%', array('%name%' => '<?php echo sfInflector::humanize($this->getSingularName()) ?>')) ?]</h2>
<ul>
<li>[?php echo $sf_request->getError('delete') ?]</li>
</ul>
</div>
[?php endif; ?]

View File

@@ -0,0 +1,9 @@
<?php if ($this->getParameterValue('list.object_actions')): ?>
<td>
<ul class="sf_admin_td_actions">
<?php foreach ($this->getParameterValue('list.object_actions') as $actionName => $params): ?>
<?php echo $this->addCredentialCondition($this->getLinkToAction($actionName, $params, true), $params) ?>
<?php endforeach; ?>
</ul>
</td>
<?php endif; ?>

View File

@@ -0,0 +1,16 @@
<td colspan="<?php echo count($this->getColumns('list.display')) ?>">
<?php if ($this->getParameterValue('list.params')): ?>
<?php echo $this->getI18NString('list.params') ?>
<?php else: ?>
<?php $hides = $this->getParameterValue('list.hide', array()) ?>
<?php foreach ($this->getColumns('list.display') as $column): ?>
<?php if (in_array($column->getName(), $hides)) continue ?>
<?php if ($column->isLink()): ?>
[?php echo link_to(<?php echo $this->getColumnListTag($column) ?> ? <?php echo $this->getColumnListTag($column) ?> : __('-'), '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
<?php else: ?>
[?php echo <?php echo $this->getColumnListTag($column) ?> ?]
<?php endif; ?>
-
<?php endforeach; ?>
<?php endif; ?>
</td>

View File

@@ -0,0 +1,16 @@
<?php $hs = $this->getParameterValue('list.hide', array()) ?>
<?php foreach ($this->getColumns('list.display') as $column): ?>
<?php if (in_array($column->getName(), $hs)) continue ?>
<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
[?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
<?php endif; ?>
<?php if ($column->isLink()): ?>
<td>[?php echo link_to(<?php echo $this->getColumnListTag($column) ?> ? <?php echo $this->getColumnListTag($column) ?> : __('-'), '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]</td>
<?php else: ?>
<td>[?php echo <?php echo $this->getColumnListTag($column) ?> ?]</td>
<?php endif; ?>
<?php if ($credentials): ?>
[?php endif; ?]
<?php endif; ?>
<?php endforeach; ?>

View File

@@ -0,0 +1,24 @@
<?php $hides = $this->getParameterValue('list.hide', array()) ?>
<?php foreach ($this->getColumns('list.display') as $column): ?>
<?php if (in_array($column->getName(), $hides)) continue ?>
<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
[?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
<?php endif; ?>
<th id="sf_admin_list_th_<?php echo $column->getName() ?>">
<?php if ($column->isReal()): ?>
[?php if ($sf_user->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == '<?php echo $column->getName() ?>'): ?]
[?php echo link_to(__('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>'), '<?php echo $this->getModuleName() ?>/list?sort=<?php echo $column->getName() ?>&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc' ? 'desc' : 'asc')) ?]
([?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort')) ?])
[?php else: ?]
[?php echo link_to(__('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>'), '<?php echo $this->getModuleName() ?>/list?sort=<?php echo $column->getName() ?>&type=asc') ?]
[?php endif; ?]
<?php else: ?>
[?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>') ?]
<?php endif; ?>
<?php echo $this->getHelpAsIcon($column, 'list') ?>
</th>
<?php if ($credentials): ?>
[?php endif; ?]
<?php endif; ?>
<?php endforeach; ?>

View File

@@ -0,0 +1,22 @@
[?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?]
[?php use_stylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>') ?]
<div id="sf_admin_container">
<h1><?php echo $this->getI18NString('edit.title', 'edit '.$this->getModuleName()) ?></h1>
<div id="sf_admin_header">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</div>
<div id="sf_admin_content">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_form', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
</div>
<div id="sf_admin_footer">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</div>
</div>

View File

@@ -0,0 +1,33 @@
[?php use_helper('I18N', 'Date') ?]
[?php use_stylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>') ?]
<div id="sf_admin_container">
<h1><?php echo $this->getI18NString('list.title', $this->getModuleName().' list') ?></h1>
<div id="sf_admin_header">
[?php include_partial('<?php echo $this->getModuleName() ?>/list_header', array('pager' => $pager)) ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/list_messages', array('pager' => $pager)) ?]
</div>
<div id="sf_admin_bar">
<?php if ($this->getParameterValue('list.filters')): ?>
[?php include_partial('filters', array('filters' => $filters)) ?]
<?php endif; ?>
</div>
<div id="sf_admin_content">
[?php if (!$pager->getNbResults()): ?]
[?php echo __('no result') ?]
[?php else: ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/list', array('pager' => $pager)) ?]
[?php endif; ?]
[?php include_partial('list_actions') ?]
</div>
<div id="sf_admin_footer">
[?php include_partial('<?php echo $this->getModuleName() ?>/list_footer', array('pager' => $pager)) ?]
</div>
</div>

View File

@@ -0,0 +1,13 @@
<ul class="sf_admin_actions">
<?php $editActions = $this->getParameterValue('edit.actions') ?>
<?php if (null !== $editActions): ?>
<?php foreach ((array) $editActions as $actionName => $params): ?>
<?php if ($actionName == '_delete') continue ?>
<?php echo $this->addCredentialCondition($this->getButtonToAction($actionName, $params, true), $params) ?>
<?php endforeach; ?>
<?php else: ?>
<?php echo $this->getButtonToAction('_list', array(), true) ?>
<?php echo $this->getButtonToAction('_save', array(), true) ?>
<?php echo $this->getButtonToAction('_save_and_add', array(), true) ?>
<?php endif; ?>
</ul>

Some files were not shown because too many files have changed in this diff Show More