repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorLinkUrl.php
dmCorePlugin/lib/validator/dmValidatorLinkUrl.php
<?php class dmValidatorLinkUrl extends sfValidatorUrl { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setMessage('invalid', '"%value%" is not a valid link.'); } /** * @see sfValidatorUrl */ protected function doClean...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorDirectoryName.php
dmCorePlugin/lib/validator/dmValidatorDirectoryName.php
<?php class dmValidatorDirectoryName extends sfValidatorString { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setMessage('invalid', '"%value%" is not a valid directory name.'); } /** * @see sfValidatorUrl */ protected ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorCssClasses.php
dmCorePlugin/lib/validator/dmValidatorCssClasses.php
<?php class dmValidatorCssClasses extends sfValidatorRegex { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setMessage('invalid', 'This CSS class is not valid.'); $this->setOption('pattern', '/^(\w|\d|\-|\s|\.|$])*$/i'); } ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmSitemapUpdateTask.class.php
dmCorePlugin/lib/task/dmSitemapUpdateTask.class.php
<?php class dmSitemapUpdateTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addArguments(array( new sfCommandArgument('domain', sfCommandArgument::REQUIRED, 'The domain name (ie. http://www.my-domain.com)'), )); $...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmSyncPagesTask.class.php
dmCorePlugin/lib/task/dmSyncPagesTask.class.php
<?php class dmSyncPagesTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'sync-pages'; $this->briefDescription = 'Synchronize pages according to modules and records.'; $this->detailedDesc...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmUpgradeTask.class.php
dmCorePlugin/lib/task/dmUpgradeTask.class.php
<?php /** * Install Diem */ class dmUpgradeTask extends dmContextTask { protected $changes = array( 'multipleAreas' ); /** * @see sfTask */ protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'upgrade'; $this->briefDescription = '...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmDoctrineTruncateTablesTask.class.php
dmCorePlugin/lib/task/dmDoctrineTruncateTablesTask.class.php
<?php class dmDoctrineTruncateTablesTask extends dmContextTask { protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'truncate-tables'; $this->briefDescription = 'Will empty all tables'; $this->detailedDescription = <<<EOF The [dmDoctrineTruncateT...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmSetupTask.class.php
dmCorePlugin/lib/task/dmSetupTask.class.php
<?php /** * Install Diem */ class dmSetupTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addOptions(array( new sfCommandOption('clear-db', null, sfCommandOption::PARAMETER_NONE, 'Drop database ( all data will be lost )'), ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmI18nTask.class.php
dmCorePlugin/lib/task/dmI18nTask.class.php
<?php /** * Install Diem */ class dmI18nTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addArguments(array( new sfCommandArgument('application', sfCommandArgument::REQUIRED, 'The application name'), new sfCommandArgument(...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmAdminDoctrineGenerateModuleTask.class.php
dmCorePlugin/lib/task/dmAdminDoctrineGenerateModuleTask.class.php
<?php class dmAdminDoctrineGenerateModuleTask extends sfDoctrineGenerateModuleTask { protected $moduleObject; /** * @see sfTask */ protected function configure() { parent::configure(); $this->addOptions(array( new sfCommandOption('from-admin-generate', null, sfCommandOption::PARAMETER...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmSearchUpdateTask.class.php
dmCorePlugin/lib/task/dmSearchUpdateTask.class.php
<?php class dmSearchUpdateTask extends dmContextTask { /** * @see sfTask */ protected function configure() { $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_OPTIONAL, 'The application name', 'front'), new sfCommandOption('env', null, sfCommandOpt...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmDoctrineDataLoadTask.class.php
dmCorePlugin/lib/task/dmDoctrineDataLoadTask.class.php
<?php class dmDoctrineDataLoadTask extends dmContextTask { protected function configure() { parent::configure(); $this->addArguments(array( new sfCommandArgument('dir_or_file', sfCommandArgument::OPTIONAL | sfCommandArgument::IS_ARRAY, 'Directory or file to load'), )); $this->addOptions(array( ne...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmAdminSecureModuleTask.class.php
dmCorePlugin/lib/task/dmAdminSecureModuleTask.class.php
<?php class dmAdminSecureModuleTask extends dmContextTask { public function configure() { parent::configure(); $this->addOptions(array( new sfCommandOption('all', null, sfCommandOption::PARAMETER_NONE, 'Re-generate for all modules') )); $this->addArgument('module', sfCommandArgument::OPTIONAL, 'Module ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmSyncPermissionsTask.class.php
dmCorePlugin/lib/task/dmSyncPermissionsTask.class.php
<?php class dmSyncPermissionsTask extends dmContextTask { protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'sync-permissions'; $this->briefDescription = 'Sync modules-actions & records permissions'; $this->detailedDescription = <<<...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmServerCheckTask.class.php
dmCorePlugin/lib/task/dmServerCheckTask.class.php
<?php class dmServerCheckTask extends sfBaseTask { protected $rowWidth = array(30, 25, 25, 12), $errors, $warnings, $checks; /** * @see sfTask */ protected function configure() { $this->addOptions(array( )); $this->namespace = 'dm'; $this->name = 'server-check'; $this-...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmLoremizeTask.class.php
dmCorePlugin/lib/task/dmLoremizeTask.class.php
<?php class dmLoremizeTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addOptions(array( new sfCommandOption('module', null, sfCommandOption::PARAMETER_REQUIRED, 'The module name'), new sfCommandOption('nb', null, sfCommand...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmAdminGenerateTask.class.php
dmCorePlugin/lib/task/dmAdminGenerateTask.class.php
<?php /** * Install Diem */ class dmAdminGenerateTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addOptions(array( new sfCommandOption('clear', null, sfCommandOption::PARAMETER_REQUIRED, 'Clear and regenerate a module', null) ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmFrontPageIndexableContentTask.class.php
dmCorePlugin/lib/task/dmFrontPageIndexableContentTask.class.php
<?php class dmPageIndexableContentTask extends dmContextTask { protected static $skipWidgets = array( 'dmWidgetNavigation.breadCrumb', 'dmWidgetContent.link', 'dmWidgetContent.media', 'dmWidgetContent.gallery' ); /** * @see sfTask */ protected function configure() { ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmPublishAssetsTask.class.php
dmCorePlugin/lib/task/dmPublishAssetsTask.class.php
<?php class dmPublishAssetsTask extends sfPluginPublishAssetsTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->namespace = 'dm'; } /** * @see sfTask */ protected function execute($arguments = array(), $options = array()) { parent::execute($...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmClearCacheTask.class.php
dmCorePlugin/lib/task/dmClearCacheTask.class.php
<?php /** * Install Diem */ class dmClearCacheTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->aliases = array('ccc'); $this->namespace = 'dm'; $this->name = 'clear-cache'; $this->briefDescription = 'Remove all cache dir c...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmDoctrineDropTablesTask.class.php
dmCorePlugin/lib/task/dmDoctrineDropTablesTask.class.php
<?php /** * Drop Db tables */ class dmDoctrineDropTablesTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'drop-tables'; $this->briefDescription = 'Drop all the tables of the Db'; $this->detailedDescript...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmGeneratePermissionsFixturesTask.class.php
dmCorePlugin/lib/task/dmGeneratePermissionsFixturesTask.class.php
<?php /** * Generates DmPermission Fixtures for securize modules */ class dmGeneratePermissionsFixturesTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->namespace = 'dm'; $this->name = 'generate-permissions-fixtures'; $this->briefDescriptio...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmDataTask.class.php
dmCorePlugin/lib/task/dmDataTask.class.php
<?php /** * Install Diem */ class dmDataTask extends dmContextTask { /** * @see sfTask */ protected function configure() { parent::configure(); $this->addOption('load-doctrine-data', 'l', sfCommandOption::PARAMETER_NONE, 'Run doctrine:data-load after loading basic data'); $this->namespace...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmProjectPermissionsTask.class.php
dmCorePlugin/lib/task/dmProjectPermissionsTask.class.php
<?php /* * This file is part of the symfony package. * (c) 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. */ /** * Fixes symfony directory permissions. * * @package symf...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/dmFrontGenerateTask.class.php
dmCorePlugin/lib/task/dmFrontGenerateTask.class.php
<?php class dmFrontGenerateTask extends dmContextTask { /** * @see sfTask */ protected function configure() { $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_OPTIONAL, 'The application name', 'front'), new sfCommandOption('env', null, sfCommandOp...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/base/dmBaseTask.php
dmCorePlugin/lib/task/base/dmBaseTask.php
<?php abstract class dmBaseTask extends sfBaseTask { protected function configure() { $env = getenv('DM_ENV'); if($env === false) { $env = 'dev'; } $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_OPTIONAL, 'The application name', 'admin'),...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/task/base/dmContextTask.php
dmCorePlugin/lib/task/base/dmContextTask.php
<?php abstract class dmContextTask extends dmBaseTask { /** * @var dmContext */ protected $context; /** * @var array */ protected $timers; protected function withDatabase() { return $this->getContext()->getDatabaseManager(); } protected function get($service) { return $this->getContext()->ge...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/csv/dmCsvWriter.php
dmCorePlugin/lib/csv/dmCsvWriter.php
<?php /** * @see sfCsvWriter */ class dmCsvWriter extends sfCsvWriter { public function convert($data) { $lines = array(); foreach ($data as $row) { $lines[] = $this->write($row); } return implode("\n", $lines); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/csv/sfCsvWriter.php
dmCorePlugin/lib/csv/sfCsvWriter.php
<?php /** * sfCsvWriter * by Carlos Escribano <carlos@markhaus.com> * * Examples: * * $myExampleData = array( * array('carlos', 'escribano', 'carlos@markhaus.com'), * array('carlos2', 'escribano2', 'carlos@markhaus.com2') * ); * * $csv = new sfCsvWriter(); * foreach ($myExampleData as $row) * { * $l...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/browser/dmBrowser.php
dmCorePlugin/lib/browser/dmBrowser.php
<?php require_once(sfConfig::get('dm_core_dir').'/lib/vendor/php-user-agent/lib/phpUserAgent.php'); class dmBrowser extends phpUserAgent { public function setEventDispatcher(sfEventDispatcher $dispatcher) { if($this->isUnknown()) { $dispatcher->notify(new sfEvent($this, 'dm.browser.unknown', $this->...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/browser/dmUserAgentParser.php
dmCorePlugin/lib/browser/dmUserAgentParser.php
<?php require_once(sfConfig::get('dm_core_dir').'/lib/vendor/php-user-agent/lib/phpUserAgentStringParser.php'); class dmUserAgentParser extends phpUserAgentStringParser { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/dmWebResponse.php
dmCorePlugin/lib/response/dmWebResponse.php
<?php class dmWebResponse extends sfWebResponse { protected $isHtmlForHuman = true, $assetAliases, $cdnConfig, $javascriptConfig, $culture, $theme, $xmlns; public function initialize(sfEventDispatcher $dispatcher, $options = array()) { parent::initialize($dispatcher, $options); $thi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/dmDownloadResponse.php
dmCorePlugin/lib/response/dmDownloadResponse.php
<?php class dmDownloadResponse extends dmConfigurable { protected $response, $mimeTypeResolver; public function __construct(sfWebResponse $response, dmMimeTypeResolver $mimeTypeResolver, array $options) { $this->response = $response; $this->mimeTypeResolver = $mimeTypeResolver; $this->i...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/dmXmlNamespace.php
dmCorePlugin/lib/response/dmXmlNamespace.php
<?php /** * dmXmlNamespace * * @author TheCelavi */ class dmXmlNamespace { protected $namespace, $schema, $tags; public function __construct($namespace, $schema, array $tags = array()) { $this->namespace = $namespace; $this->schema = $schema; $this->tags = $tags; ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/asset/dmAssetConfig.php
dmCorePlugin/lib/response/asset/dmAssetConfig.php
<?php abstract class dmAssetConfig { protected $dispatcher, $user; public function __construct(sfEventDispatcher $dispatcher, dmCoreUser $user) { $this->dispatcher = $dispatcher; $this->user = $user; $this->initialize(); } public function initialize() { } abstra...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/asset/compressor/dmAssetCompressor.php
dmCorePlugin/lib/response/asset/compressor/dmAssetCompressor.php
<?php abstract class dmAssetCompressor extends dmConfigurable { protected $dispatcher, $filesystem, $requestContext, $type, $assets, $processedAssets, $cachedAssetsPaths, $cacheKeys, $webDir; public function __construct(sfEventDispatcher $dispatcher, dmFilesystem $filesystem, array $requestCon...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/asset/compressor/dmJavascriptCompressor.php
dmCorePlugin/lib/response/asset/compressor/dmJavascriptCompressor.php
<?php class dmJavascriptCompressor extends dmAssetCompressor { public function getDefaultOptions() { return array_merge(parent::getDefaultOptions(), array( 'black_list' => array() )); } public function preProcess() { parent::preProcess(); // remove head included javascripts ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/response/asset/compressor/dmStylesheetCompressor.php
dmCorePlugin/lib/response/asset/compressor/dmStylesheetCompressor.php
<?php class dmStylesheetCompressor extends dmAssetCompressor { public function getDefaultOptions() { return array_merge(parent::getDefaultOptions(), array( 'black_list' => array() )); } public function addToBlackList($fileName) { $this->mergeOption('black_list', (array) $fileNa...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/dmWidgetType/dmWidgetTypeManager.php
dmCorePlugin/lib/dmWidgetType/dmWidgetTypeManager.php
<?php class dmWidgetTypeManager extends dmConfigurable { protected $dispatcher, $serviceContainer, $widgetTypes; public function __construct(sfEventDispatcher $dispatcher, dmBaseServiceContainer $serviceContainer, array $options = array()) { $this->dispatcher = $dispatcher; $this->serviceCon...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/dmWidgetType/dmWidgetType.php
dmCorePlugin/lib/dmWidgetType/dmWidgetType.php
<?php class dmWidgetType extends dmConfigurable { protected $module, $action; public function __construct($module, $action, $options = array()) { $this->module = $module; $this->action = $action; $this->configure($options); } public function getModule() { return $this->module; ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/request/dmWebRequest.php
dmCorePlugin/lib/request/dmWebRequest.php
<?php class dmWebRequest extends sfWebRequest { /** * @var string */ protected $absoluteUrlRoot; /** * @return string */ public function getAbsoluteUrlRoot() { if(null === $this->absoluteUrlRoot) { $this->absoluteUrlRoot = $this->getUriPrefix().$this->getRelativeUrlRoot(); } ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmVersionable/Template/DmVersionable.php
dmCorePlugin/lib/doctrine/extension/DmVersionable/Template/DmVersionable.php
<?php class Doctrine_Template_DmVersionable extends Doctrine_Template_Versionable { /** * Setup the Versionable behavior for the template * * @return void */ public function setUp() { if ($this->_plugin->getOption('auditLog')) { $this->_plugin->initialize($this->_table); } $version...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmVersionable/Listener/Listener.php
dmCorePlugin/lib/doctrine/extension/DmVersionable/Listener/Listener.php
<?php class dmDoctrineAuditLogListener extends Doctrine_AuditLog_Listener { /** * Post insert event hook which creates the new version record * This will only insert a version record if the auditLog is enabled * * @param Doctrine_Event $event * @return void */ public function postInsert(Doctri...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmSortable/Template/DmSortable.php
dmCorePlugin/lib/doctrine/extension/DmSortable/Template/DmSortable.php
<?php class Doctrine_Template_DmSortable extends Doctrine_Template { protected $_options = array('manyListsColumn' => null); public function setTableDefinition() { $this->hasColumn('position', 'integer'); $this->addListener(new Doctrine_Template_Listener_DmSortable($this->_options)); } public funct...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmSortable/Listener/DmSortable.php
dmCorePlugin/lib/doctrine/extension/DmSortable/Listener/DmSortable.php
<?php class Doctrine_Template_Listener_DmSortable extends Doctrine_Record_Listener { public function __construct($options = array()) { $this->_options = array_merge(array('new' => 'first'), $this->_options, $options); if (!in_array($this->_options['new'], array('first', 'last'))) { throw ne...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmBlameable/DmBlameable.php
dmCorePlugin/lib/doctrine/extension/DmBlameable/DmBlameable.php
<?php /* * $Id$ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CO...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmBlameable/Listener/DmBlameable.php
dmCorePlugin/lib/doctrine/extension/DmBlameable/Listener/DmBlameable.php
<?php /* * $Id$ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CO...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/Sortable/lib/Doctrine/Template/Sortable.php
dmCorePlugin/lib/doctrine/extension/Sortable/lib/Doctrine/Template/Sortable.php
<?php // deprecated class Doctrine_Template_Sortable extends Doctrine_Template_DmSortable { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/Sortable/lib/Doctrine/Template/Listener/Sortable.php
dmCorePlugin/lib/doctrine/extension/Sortable/lib/Doctrine/Template/Listener/Sortable.php
<?php // deprecated class Doctrine_Template_Listener_Sortable extends Doctrine_Template_Listener_DmSortable { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmGallery/DmGallery.php
dmCorePlugin/lib/doctrine/extension/DmGallery/DmGallery.php
<?php /** * Behavior for adding gallery features to your models * * @package Doctrine * @subpackage Template */ class Doctrine_DmGallery extends Doctrine_Record_Generator { public function __construct(array $options = array()) { $this->_options = $options; } public function setTableDefinition...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/extension/DmGallery/Template/DmGallery.php
dmCorePlugin/lib/doctrine/extension/DmGallery/Template/DmGallery.php
<?php /** * Add gallery capabilities to your models */ class Doctrine_Template_DmGallery extends Doctrine_Template { protected $_options = array( 'mediaClass' => 'DmMedia', 'mediaAlias' => 'Medias', 'formClass' => 'DmMediaForm', 'className' => '%CLASS%DmMedia', 'generateFiles' => ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/loremizer/dmProjectLoremizer.php
dmCorePlugin/lib/doctrine/loremizer/dmProjectLoremizer.php
<?php class dmProjectLoremizer extends dmConfigurable { protected $moduleManager, $serviceContainer; public function __construct(dmModuleManager $moduleManager, sfServiceContainer $serviceContainer, array $options = array()) { $this->serviceContainer = $serviceContainer; $this->moduleManager = $m...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/loremizer/dmTableLoremizer.php
dmCorePlugin/lib/doctrine/loremizer/dmTableLoremizer.php
<?php class dmTableLoremizer extends dmConfigurable { protected $serviceContainer; public function __construct(sfServiceContainer $serviceContainer, array $options = array()) { $this->serviceContainer = $serviceContainer; $this->initialize($options); } public function initialize(array $opt...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
<?php class dmRecordLoremizer extends dmConfigurable { protected $record, $table; public function __construct(array $options = array()) { $this->initialize($options); } public function getDefaultOptions() { return array( 'override' => false, 'create_associations' => true )...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/query/dmDoctrineQuery.php
dmCorePlugin/lib/doctrine/query/dmDoctrineQuery.php
<?php abstract class dmDoctrineQuery extends Doctrine_Query { /** * @var dmModuleManager */ protected static $moduleManager; /** * Constructor. * * @param Doctrine_Connection The connection object the query will use. * @param Doctrine_Hydrator_Abstract The hydrator that will be used for generating r...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/query/myDoctrineQueryTokenizer.php
dmCorePlugin/lib/doctrine/query/myDoctrineQueryTokenizer.php
<?php class myDoctrineQueryTokenizer extends phpExtensionQueryTokenizer { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/query/phpExtensionQueryTokenizer.php
dmCorePlugin/lib/doctrine/query/phpExtensionQueryTokenizer.php
<?php class phpExtensionQueryTokenizer extends Doctrine_Query_Tokenizer { public function tokenizeQuery($query) { return dql_tokenize_query($query); } public function bracketTrim($str, $e1 = '(', $e2 = ')') { return dql_bracket_trim($str, $e1, $e2); } public function bracketExplode($str, $d = '...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/collection/myDoctrineCollection.php
dmCorePlugin/lib/doctrine/collection/myDoctrineCollection.php
<?php class myDoctrineCollection extends dmDoctrineCollection { public function saveGet($conn = null) { $this->save($conn); return $this; } public function clear() { parent::clear(); return $this; } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/collection/dmDoctrineCollection.php
dmCorePlugin/lib/doctrine/collection/dmDoctrineCollection.php
<?php abstract class dmDoctrineCollection extends Doctrine_Collection { /** * @param $conn * @return myDoctrineCollection */ public function saveGet($conn = null) { $this->save($conn); return $this; } /** * @param myDoctrineRecord $record * @param mixed $key * @return myDoctrineCollection */ ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/record/dmDoctrineRecord.php
dmCorePlugin/lib/doctrine/record/dmDoctrineRecord.php
<?php abstract class dmDoctrineRecord extends sfDoctrineRecord { protected static $eventDispatcher, $serviceContainer, $moduleManager; protected $i18nFallback = null; /** * Doctrine nestedSet helper * @return integer */ public function getNestedSetParent() { if ($this->getTable()->isNestedSet()) { ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/record/dmDoctrineRecordI18nFilter.class.php
dmCorePlugin/lib/doctrine/record/dmDoctrineRecordI18nFilter.class.php
<?php /* * This file is part of the symfony package. * (c) Jonathan H. Wage <jonwage@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfDoctrineRecordI18nFilter implements access to the translated properties for ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/column/dmDoctrineColumn.class.php
dmCorePlugin/lib/doctrine/column/dmDoctrineColumn.class.php
<?php class dmDoctrineColumn extends sfDoctrineColumn { public function isColumnAggregationKeyField() { return $this->isColumnAggregationKeyField; } public function markAsColumnAggregationKeyField() { $this->isColumnAggregationKeyField = true; } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/hydrator/dmFlatDriver.php
dmCorePlugin/lib/doctrine/hydrator/dmFlatDriver.php
<?php /** * Get results directly and skip hydration. Uses PDO::FETCH_COLUMN * * @package Doctrine * @subpackage Hydrate * @since 1.2 */ class Doctrine_Hydrator_dmFlatDriver extends Doctrine_Hydrator_Abstract { public function hydrateResultSet($stmt) { return $stmt->fetchAll(PDO::FETCH_COLUMN); ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/pager/dmDoctrinePager.php
dmCorePlugin/lib/doctrine/pager/dmDoctrinePager.php
<?php class dmDoctrinePager extends sfDoctrinePager { protected $resultsCache, $isInited; /** * @see sfPager */ public function setMaxPerPage($maxPerPage) { parent::setMaxPerPage($maxPerPage); return $this; } /** * @see sfPager */ public function setQuery($query) { parent::setQuery($query)...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/database/dmDbHelper.php
dmCorePlugin/lib/doctrine/database/dmDbHelper.php
<?php class dmDbHelper { /** * @var Doctrine_Connection */ protected $conn; /** * @var string */ protected $driver; /** * @param Doctrine_Connection $conn */ public function __construct($conn, $dispatcher = null, $formatter = null, $log = false) { $this->log = $log; $this->conn= $conn; $this...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/database/dmDb.php
dmCorePlugin/lib/doctrine/database/dmDb.php
<?php class dmDb { protected static $tables; /** * Shortcut for myDoctrineQuery::create * * @return myDoctrineQuery the query with filled from */ public static function query($from = null, $conn = null) { if ($from instanceof Doctrine_Connection) { $conn = $from; $from = null...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/export/myDoctrineTableExport.php
dmCorePlugin/lib/doctrine/export/myDoctrineTableExport.php
<?php class myDoctrineTableExport extends dmDoctrineTableExport { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/export/dmDoctrineTableExport.php
dmCorePlugin/lib/doctrine/export/dmDoctrineTableExport.php
<?php /** * Base table for table export * Generate a string export in csv format * of the table records selected by query */ abstract class dmDoctrineTableExport extends dmConfigurable { protected $table, $i18n, $customGetters; public function __construct(myDoctrineTable $table, dmI18n $i18n, array $opt...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/table/dmDoctrineTable.php
dmCorePlugin/lib/doctrine/table/dmDoctrineTable.php
<?php abstract class dmDoctrineTable extends Doctrine_Table { protected static $eventDispatcher, // mandatory $moduleManager, // mandatory $serviceContainer; // optional protected $hasI18n; // cache public function construct() { $this->hasI18n = $this->hasRelation('Translation'); } /** ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/doctrine/table/dmTableRelationHolder.php
dmCorePlugin/lib/doctrine/table/dmTableRelationHolder.php
<?php class dmTableRelationHolder { protected $table, $relations, $associationRelations, $foreignRelations, $localRelations; public function __construct(myDoctrineTable $table) { $this->table = $table; } public function getAll() { if (null !== $this->relations) { ret...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/debug/dmDebug.php
dmCorePlugin/lib/debug/dmDebug.php
<?php class dmDebug { const MAX_DEBUG_LENGTH = 1000000; public function __construct() { self::kill(func_get_args()); } /** * Gets a sfTimer instance. * * It returns the timer named $name or create a new one if it does not exist. * * @param string $name The name of the timer * * @r...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/debug/dmWebDebugPanelConfig.php
dmCorePlugin/lib/debug/dmWebDebugPanelConfig.php
<?php class dmWebDebugPanelConfig extends sfWebDebugPanelConfig { public function getPanelContent() { $html = parent::getPanelContent(); $html .= $this->formatArrayAsHtml('Diem', array( 'version' => DIEM_VERSION, 'path' => dm::getDir(), )); return $html; } /** * Conv...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/debug/dmWebDebug.php
dmCorePlugin/lib/debug/dmWebDebug.php
<?php class dmWebDebug extends sfWebDebug { /** * Injects the web debug toolbar into a given HTML string. * * @param string $content The HTML content * * @return string The content with the web debug toolbar injected */ public function injectToolbar($content) { // we don't want to show we...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/debug/dmWebDebugPanelMemory.php
dmCorePlugin/lib/debug/dmWebDebugPanelMemory.php
<?php class dmWebDebugPanelMemory extends sfWebDebugPanel { public function getTitle() { $totalMemory = sprintf('%.1f', (memory_get_peak_usage(true) / 1024 / 1024)); return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" alt="Memory" /> '.$totalMemory.' MB'; } public function...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/debug/dmErrorWatcher.php
dmCorePlugin/lib/debug/dmErrorWatcher.php
<?php class dmErrorWatcher extends dmConfigurable { protected $dispatcher, $context, $options; public function __construct(sfEventDispatcher $dispatcher, dmContext $context, array $options = array()) { $this->dispatcher = $dispatcher; $this->context = $context; $this->configure($opti...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/context/dmContext.php
dmCorePlugin/lib/context/dmContext.php
<?php class dmContext extends sfContext { protected $serviceContainer, $page, $helper; /** * Creates a new context instance. * * @param sfApplicationConfiguration $configuration An sfApplicationConfiguration instance * @param string $name A name for this context ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmInputFile.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmInputFile.class.php
<?php /** * @see sfWidgetFormInputFile */ class sfWidgetFormDmInputFile extends sfWidgetFormInputFile { /** * Remove value attribute for html5 validation */ public function render($name, $value = null, $attributes = array(), $errors = array()) { return $this->renderTag('input', array_merge(array('typ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmDoctrineChoice.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmDoctrineChoice.class.php
<?php class sfWidgetFormDmDoctrineChoice extends sfWidgetFormDoctrineChoice { protected $pager; /** * Returns the choices associated to the model. * * @return array An array of choices */ public function getChoices() { $choices = array(); if($this->getOption('choices')) return $this->...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormSchemaFormatterDmList.class.php
dmCorePlugin/lib/widget/sfWidgetFormSchemaFormatterDmList.class.php
<?php class sfWidgetFormSchemaFormatterDmList extends sfWidgetFormSchemaFormatter { protected $rowFormat = "<li class=\"dm_form_element clearfix\">\n %error%%label%\n %field%%help%\n%hidden_fields%</li>\n", $errorRowFormat = "<li>\n%errors%</li>\n", $helpFormat = '<div class="dm_help_wrap">...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmFilterInput.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmFilterInput.class.php
<?php class sfWidgetFormDmFilterInput extends sfWidgetFormFilterInput { /** * @see sfWidgetFormFilterInput */ protected function configure($options = array(), $attributes = array()) { parent::configure(); $this->setOption('template', '%input%<div class="dm_filter_empty">%empty_checkbox% %empty_lab...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmSelectCheckbox.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmSelectCheckbox.class.php
<?php class sfWidgetFormDmSelectCheckbox extends sfWidgetFormSelectCheckbox { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmActions.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmActions.class.php
<?php class sfWidgetFormDmActions extends sfWidgetFormChoice { public function __construct($options = array(), $attributes = array()) { $choices = array(); $modules = array(); foreach(dmContext::getInstance()->getModuleManager()->getModules() as $module) { $actions = $module->getActions(); ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmModules.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmModules.class.php
<?php class sfWidgetFormDmModules extends sfWidgetFormChoice { public function __construct($options = array(), $attributes = array()) { $modules = dmContext::getInstance()->getModuleManager()->getModules(); $options['choices'] = array_combine($modules, $modules); parent::__construct($options, $attr...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmDate.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmDate.class.php
<?php /** * sfWidgetFormDate represents a date widget. * * @package symfony * @subpackage widget * @author Fabien Potencier <fabien.potencier@symfony-project.com> * @version SVN: $Id: sfWidgetFormDate.class.php 16259 2009-03-12 11:42:00Z fabien $ */ class sfWidgetFormDmDate extends sfWidgetFormI18nDat...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/widget/sfWidgetFormDmPaginatedDoctrineChoice.class.php
dmCorePlugin/lib/widget/sfWidgetFormDmPaginatedDoctrineChoice.class.php
<?php class sfWidgetFormDmPaginatedDoctrineChoice extends sfWidgetFormDoctrineChoice { protected $pager; protected $inited = false; public function __construct($options = array(), $attributes = array()) { $this->pager = new dmDoctrinePager($options['model']); if(isset($options['query'])) { $this->pager->s...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/markdown/dmMarkdownTranslator.php
dmCorePlugin/lib/markdown/dmMarkdownTranslator.php
<?php class dmMarkdownTranslator extends dmConfigurable { protected $i18n; public function __construct(dmI18n $i18n, array $options = array()) { $this->i18n = $i18n; $this->initialize($options); } public function getDefaultOptions() { return array( 'messages' => array() ); } ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/markdown/dmMarkdown.php
dmCorePlugin/lib/markdown/dmMarkdown.php
<?php require_once(dirname(__FILE__).'/vendor/markdown.php'); class dmMarkdown extends MarkdownExtra_Parser { protected $headerIdStack, $helper; public function __construct(dmHelper $helper, array $options = array()) { $this->helper = $helper; parent::MarkdownExtra_Parser(); $this->initialize...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/markdown/vendor/markdown.php
dmCorePlugin/lib/markdown/vendor/markdown.php
<?php /* * Diem hacks * - removed wordpress, smarty etc specific code * - removed Markdown floating function */ # # Markdown Extra - A text-to-HTML conversion tool for web writers # # PHP Markdown & Extra # Copyright (c) 2004-2013 Michel Fortin # <http://michelf.ca/projects/php-markdown/> # # Original Markdown ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
true
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/codeEditor/dmCodeEditorException.php
dmCorePlugin/lib/codeEditor/dmCodeEditorException.php
<?php class dmCodeEditorException extends dmException { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/config/installer.php
dmCorePlugin/config/installer.php
<?php /** @var sfGenerateProjectTask This file runs in the context of sfGenerateProjectTask::execute() */ $this; sfConfig::set('dm_core_dir', realpath(dirname(__FILE__).'/..')); require_once(sfConfig::get('dm_core_dir').'/lib/core/dm.php'); require_once(sfConfig::get('dm_core_dir').'/lib/basic/dmString.php'); requir...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/config/dmCorePluginConfiguration.class.php
dmCorePlugin/config/dmCorePluginConfiguration.class.php
<?php class dmCorePluginConfiguration extends sfPluginConfiguration { protected static $modules = array('dmCore', 'dmAuth'), $helpers = array('Partial', 'I18N', 'Dm'); public function configure() { sfConfig::set('dm_core_dir', realpath(dirname(__FILE__).'/..')); require_once(sfConfig::get('dm_co...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterPluginTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterPluginTemplate.php
[?php /** * Plugin<?php echo $this->table->getOption('name') ?> form. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormFilterPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class Plugin<?php echo $this->table->ge...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterGeneratedTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterGeneratedTemplate.php
[?php /** * <?php echo $this->table->getOption('name') ?> filter form base class. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $ */ abstract class Base<?php echo $th...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterBaseTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterBaseTemplate.php
[?php /** * Project filter form base class. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormFilterBaseTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class BaseFormFilterDoctrine extends sfFormFilterDoctrine { publi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterGeneratedInheritanceTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterGeneratedInheritanceTemplate.php
[?php /** * <?php echo $this->table->getOption('name') ?> filter form base class. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormFilterGeneratedInheritanceTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $ */ abstract class Base<?p...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrineFormFilterTemplate.php
[?php /** * <?php echo $this->table->getOption('name') ?> filter form. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class <?php echo $this->table->getOption('name') ?>Fo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrinePluginFormFilterTemplate.php
dmCorePlugin/data/generator/dmDoctrineFormFilter/default/template/sfDoctrinePluginFormFilterTemplate.php
[?php /** * <?php echo $this->table->getOption('name') ?> filter form. * * @package ##PROJECT_NAME## * @subpackage filter * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrinePluginFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class <?php echo $this->table->getOption('name'...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrinePluginFormTemplate.php
dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrinePluginFormTemplate.php
[?php /** * <?php echo $this->table->getOption('name') ?> form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ * @generator <?php echo 'Diem ', constant('DIEM_VERSION'), "\n"?> * @gen-file <?php echo __FILE__?> */ class <?php echo $this->table->get...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php
dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php
[?php /** * <?php echo $this->modelName ?> form base class. * * @method <?php echo $this->modelName ?> getObject() Returns the current form's model object * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ * @generator <?php echo 'Diem ', constant('DIEM_...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrineFormGeneratedInheritanceTemplate.php
dmCorePlugin/data/generator/dmDoctrineForm/default/template/sfDoctrineFormGeneratedInheritanceTemplate.php
[?php /** * <?php echo $this->modelName ?> form base class. * * @method <?php echo $this->modelName ?> getObject() Returns the current form's model object * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ * @generator <?php echo 'Diem ', constant('DIEM_...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false