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/view/html/media/tag/dmMediaTagImage.php
dmCorePlugin/lib/view/html/media/tag/dmMediaTagImage.php
<?php class dmMediaTagImage extends dmMediaTag { protected static $verifiedThumbDirs = array(); public function initialize(array $options = array()) { parent::initialize($options); $this->addAttributeToRemove(array('resize_method', 'resize_quality', 'background', 'filter', 'overlay')); } publ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/link/dmBaseLinkTagFactory.php
dmCorePlugin/lib/view/html/link/dmBaseLinkTagFactory.php
<?php abstract class dmBaseLinkTagFactory { protected $serviceContainer; public function __construct(dmBaseServiceContainer $serviceContainer) { $this->serviceContainer = $serviceContainer; } abstract public function buildLink($source); }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/link/dmBaseLinkTag.php
dmCorePlugin/lib/view/html/link/dmBaseLinkTag.php
<?php abstract class dmBaseLinkTag extends dmHtmlTag { protected $resource; protected function initialize(array $options = array()) { parent::initialize($options); $this->addAttributeToRemove(array('text', 'anchor', 'current_class', 'parent_class', 'current_span', 'use_beaf', 'http_secure')); ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/js/dmJsMinifier.php
dmCorePlugin/lib/view/js/dmJsMinifier.php
<?php require_once(realpath(dirname(__FILE__).'/vendor').'/JsMinEnh.php'); class dmJsMinifier { public static function transform($script) { return self::minify1($script); } protected static function minify1($script) { $minifier = new JsMinEnh($script); return $minifier->minify(); } // ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/js/vendor/JsMinEnh.php
dmCorePlugin/lib/view/js/vendor/JsMinEnh.php
<?php // coding:utf-8 /** * JsMinEnh.php (for PHP 5 only) * * Based on "PHP adaptation of JSMin" * <http://gggeek.altervista.org/2006/12/22/shrink-the-size-of-your-javascript-with-js-min-the-php-way/> * but freely adapted to my own needs. * * PHP adaptation of JSMin, published by Douglas Crockford as jsmin.c, also base...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/theme/dmTheme.php
dmCorePlugin/lib/view/theme/dmTheme.php
<?php class dmTheme { protected $dispatcher, $filesystem, $dir, $name, $enabled, $requestContext; public function __construct(sfEventDispatcher $dispatcher, dmFilesystem $filesystem, array $requestContext, array $options) { $this->dispatcher = $dispatcher; $this->filesystem...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/os/dmMimeTypeResolver.php
dmCorePlugin/lib/os/dmMimeTypeResolver.php
<?php class dmMimeTypeResolver { protected $mimeTypes; public function getByFilename($file, $default = null) { return $this->getByExtension(pathinfo($file,PATHINFO_EXTENSION), $default); } public function getGroupByFilename($file) { return $this->getMimeTypeGroup($this->getByFilename($file)...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/os/dmServerCheck.php
dmCorePlugin/lib/os/dmServerCheck.php
<?php require_once(realpath(dirname(__FILE__).'/dmOs.php')); class dmServerCheck { protected $checks; const WARNING = 1; const ERROR = 2; public function __construct() { $this->checks = $this->createChecks(); } protected function createChecks() { // check graphviz // exec('dot -V', $ou...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/os/dmFilesystem.php
dmCorePlugin/lib/os/dmFilesystem.php
<?php class dmFilesystem extends sfFilesystem { protected $lastExec; // array(command, output, return) public function mkdir($path, $mode = 0777) { if (!is_dir($path)) { $oldUmask = umask(0); mkdir($path, $mode, true); umask($oldUmask); } return is_writable($path); } pu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/os/dmOs.php
dmCorePlugin/lib/os/dmOs.php
<?php class dmOs { /** * Builds a path with many path parts * * dmOs("/home/user/", "/dir", "sub_dir", "file.ext") * returns "/home/user/dir/sub_dir/file.ext" */ public static function join() { $parts = func_get_args(); $dirtyPath = implode('/', $parts); if(strpos($dirtyPath, '//...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/os/data/dmMimeTypes.php
dmCorePlugin/lib/os/data/dmMimeTypes.php
<?php return array( '123'=>'application/vnd.lotus-1-2-3', '3dml'=>'text/vnd.in3d.3dml', '3g2'=>'video/3gpp2', '3gp'=>'video/3gpp', 'a'=>'application/octet-stream', 'aab'=>'application/x-authorware-bin', 'aac'=>'audio/x-aac', 'aam'=>'application/x-authorware-map', 'aas'=>'application/x-authorware-seg', 'abw'=>'applicati...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/helper/DmMediaHelper.php
dmCorePlugin/lib/helper/DmMediaHelper.php
<?php function media_file_infos(DmMedia $object) { $infos = array( __('Size') => dmOs::humanizeSize($object->get('size')), __('Type') => $object->get('mime'), __('Created at') => format_date($object->get('created_at'), 'f'), __('Updated at') => format_date($object->get('updated_at'), 'f'), __('Ur...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/helper/DmHelper.php
dmCorePlugin/lib/helper/DmHelper.php
<?php function escape($text) { return dmString::escape($text); } /** * @return dmLinkTag a link to $source */ function _link($source = null) { return sfContext::getInstance()->getHelper()->link($source); } function £link($source = null) { return _link($source); } /** * @return dmMediaTag */ function _media...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/dmModuleSecurityManager.class.php
dmCorePlugin/lib/security/dmModuleSecurityManager.class.php
<?php /* * This file is part of the diem package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * This class (used as a service using sfServiceContainer) orchestrates * the management of security features for modules. * * ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/dmRecordSecurityManager.class.php
dmCorePlugin/lib/security/dmRecordSecurityManager.class.php
<?php class dmRecordSecurityManager { protected $context; protected $container; public function __construct(dmContext $context, sfServiceContainer $container) { $this->context = $context; $this->container = $container; } public function manage($hookType, dmDoctrineRecord $record) { if($rec...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/dmRecordPermissionAssociationManager.class.php
dmCorePlugin/lib/security/dmRecordPermissionAssociationManager.class.php
<?php /* * * * */ /** * * @author serard * */ class dmRecordPermissionAssociationManager { /** * @var dmContext */ protected $context; /** * @var sfServiceContainer */ protected $container; /** * @var myUser */ protected $user; /** * @param dmContext $context * @param sfServiceCo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/interfaces/dmModuleSecurityManagerInterface.class.php
dmCorePlugin/lib/security/interfaces/dmModuleSecurityManagerInterface.class.php
<?php /* * * */ /** * * @author serard * */ interface dmModuleSecurityManagerInterface { /** * Secures a dmModule according to its security options * @param dmModule $module */ public function secure(dmModule $module = null); /** * Sets the module for the instance * @param dmModule $mod...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/interfaces/dmModuleSecurityStrategyInterface.class.php
dmCorePlugin/lib/security/interfaces/dmModuleSecurityStrategyInterface.class.php
<?php /* * * * */ /** * * @author serard * */ interface dmModuleSecurityStrategyInterface { /** * Secures a given $app/$module/$action using $actionConfig * * @param dmModule $module the module to secure * @param unknown_type $app the application of the module * @param unknown_type $acti...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/abstracts/dmModuleSecurityStrategyAbstract.class.php
dmCorePlugin/lib/security/abstracts/dmModuleSecurityStrategyAbstract.class.php
<?php /* * * * */ /** * * @author serard * */ abstract class dmModuleSecurityStrategyAbstract extends dmModuleSecurityAbstract implements dmModuleSecurityStrategyInterface { protected $module; protected $action; /** * This method is called by dmModuleSecurityManager->secure() method for modules *...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/abstracts/dmModuleSecurityAbstract.class.php
dmCorePlugin/lib/security/abstracts/dmModuleSecurityAbstract.class.php
<?php /* * * */ /** * * @author serard * */ class dmModuleSecurityAbstract extends dmMetaCache { /** * @var dmContext */ protected $context; /** * @var sfServiceContainer */ protected $container; /** * @var dmUser */ protected $user; /** * Constructor. * This method i...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/strategies/dmModuleActionMixedRecordSecurityStrategy.class.php
dmCorePlugin/lib/security/strategies/dmModuleActionMixedRecordSecurityStrategy.class.php
<?php /* * * */ /** * This class is a module-action & module-action-record security strategy. * * It will check if user has necessary credentials to execute the action using * simple $user->hasCredentials() and it will take care of returning * only authorized records user can manage. * * This security strate...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/strategies/dmModuleActionRecordSecurityStrategy.class.php
dmCorePlugin/lib/security/strategies/dmModuleActionRecordSecurityStrategy.class.php
<?php /* * */ /** * This class is a securization strategy for modules, actions and records. * * It helps you secure the execution of a module-action for given records. * By associating a dmUser or its dmGroups to a given dmRecordPermission, * you ensure user will have right to execute the given module-action fo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/security/strategies/dmModuleActionSecurityStrategy.class.php
dmCorePlugin/lib/security/strategies/dmModuleActionSecurityStrategy.class.php
<?php /* * */ /** * * @author serard * */ class dmModuleActionSecurityStrategy extends dmModuleSecurityStrategyAbstract implements dmModuleSecurityStrategyInterface { /** * This method is responsible for securing a module-action using symfony security.yml file. * It is called when generating modules using ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/page/dmPageTreeWatcher.php
dmCorePlugin/lib/page/dmPageTreeWatcher.php
<?php class dmPageTreeWatcher extends dmConfigurable { protected $dispatcher, $serviceContainer, $options, $modifiedTables; public function __construct(sfEventDispatcher $dispatcher, dmBaseServiceContainer $serviceContainer, array $options = array()) { $this->dispatcher = $dispatcher; $this->ser...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/page/dmPageSynchronizer.php
dmCorePlugin/lib/page/dmPageSynchronizer.php
<?php class dmPageSynchronizer { protected $moduleManager, $nodeParentIdStmt; public function __construct(dmModuleManager $moduleManager) { $this->moduleManager = $moduleManager; } public function execute(array $onlyModules = array()) { if(empty($onlyModules)) { $onlyModules = $thi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/page/dmPageI18nBuilder.php
dmCorePlugin/lib/page/dmPageI18nBuilder.php
<?php class dmPageI18nBuilder extends dmConfigurable { protected $dispatcher, $isConnected; public function __construct(sfEventDispatcher $dispatcher, array $options = array()) { $this->dispatcher = $dispatcher; $this->initialize($options); } public function getDefaultOptions() { ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/media/dmMediaSynchronizer.php
dmCorePlugin/lib/media/dmMediaSynchronizer.php
<?php class dmMediaSynchronizer { protected $filesystem, $folderTable, $mediaTable, $ignore = array('.', '..', '.thumbs', '.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg'); public function __construct(dmFilesystem $filesystem) { $this->filesystem = $filesystem; ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/core/dmConfigurable.php
dmCorePlugin/lib/core/dmConfigurable.php
<?php /** * Provides basic methods for configurable services */ abstract class dmConfigurable { protected $options; /** * Configures the current object. * * @param array $options An array of options * * @return dmConfigurable The current object instance */ public function configure(array...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/core/dmBase.php
dmCorePlugin/lib/core/dmBase.php
<?php //First version of Diem 5.4.0 DEV branch define('DIEM_VERSION', '5.4.0-DEV'); // include symfony if (!defined('SYMFONY_VERSION')) { require_once realpath(dirname(__FILE__).'/../../..').'/symfony/lib/autoload/sfCoreAutoload.class.php'; sfCoreAutoload::register(); } class dmBase { protected static $start...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/core/dm.php
dmCorePlugin/lib/core/dm.php
<?php require_once(dirname(__FILE__).'/dmBase.php'); /* * Provides shortcuts to Symfony & Diem static methods */ class dm extends dmBase { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmInlineConfigHandler.php
dmCorePlugin/lib/config/dmInlineConfigHandler.php
<?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. */ /** * * @package symfony * @subpackage config * @a...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmConfigForm.php
dmCorePlugin/lib/config/dmConfigForm.php
<?php class dmConfigForm extends dmForm { public function configure() { } public function save() { foreach($this->widgetSchema->getFields() as $name => $field) { dmConfig::set($name, $this->getValue($name)); } } public function addSettings(array $settings) { foreach($settings a...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmModuleManagerConfigHandler.php
dmCorePlugin/lib/config/dmModuleManagerConfigHandler.php
<?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. */ /** * @package symfony * @subpackage config * @auth...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmInlineAssetConfigHandler.php
dmCorePlugin/lib/config/dmInlineAssetConfigHandler.php
<?php require_once(dirname(__FILE__)."/dmInlineConfigHandler.php"); class dmInlineAssetConfigHandler extends dmInlineConfigHandler { /** * Gets values from the configuration array. * * @param string $prefix The prefix name * @param string $category The category name * @param mixed $keys Th...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmApplicationConfiguration.php
dmCorePlugin/lib/config/dmApplicationConfiguration.php
<?php /** * sfConfiguration represents a configuration for a symfony application. * * @package symfony * @subpackage config * @author Fabien Potencier <fabien.potencier@symfony-project.com> * @version SVN: $Id: sfApplicationConfiguration.class.php 13947 2008-12-11 14:15:32Z fabien $ */ abstract class ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmConfig.php
dmCorePlugin/lib/config/dmConfig.php
<?php /** * dmConfig stores all configuration information for a diem application in database. */ class dmConfig { protected static $dispatcher, $culture, $config, $loaded = false; /** * Retrieves a config parameter. * If config parameter does not exist, will create it, assign given $default value ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmFactoryConfigHandler.php
dmCorePlugin/lib/config/dmFactoryConfigHandler.php
<?php class dmFactoryConfigHandler extends sfFactoryConfigHandler { public function execute($configFiles) { $code = parent::execute($configFiles); if(!sfConfig::get('dm_performance_enable_mailer', true)) { $code = str_replace('Swift::registerAutoload();', '// Swift::registerAutoload();', $cod...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/config/dmProjectConfiguration.php
dmCorePlugin/lib/config/dmProjectConfiguration.php
<?php class dmProjectConfiguration extends sfProjectConfiguration { public function setup() { parent::setup(); $this->setDmPluginPaths(); $this->enablePlugins(array( 'sfDoctrinePlugin', 'dmCorePlugin', 'dmUserPlugin', 'sfWebBrowserPlugin', 'sfImageTransformPlugin', ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchPageHit.php
dmCorePlugin/lib/search/dmSearchPageHit.php
<?php class dmSearchPageHit { protected $pageId, $pageContent, $score, $page; public function __construct($score, $pageId, $pageContent) { $this->score = $score; $this->pageId = $pageId; $this->pageContent = $pageContent; } public function getScore() { return $this->score; }...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchIndex.php
dmCorePlugin/lib/search/dmSearchIndex.php
<?php require_once('Zend/Search/Lucene.php'); class dmSearchIndex extends dmSearchIndexCommon { protected $luceneIndex; protected function initialize(array $options) { parent::initialize($options); if (!$this->getOption('dir')) { throw new dmSearchIndexException('Can not create an in...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchIndexCommon.php
dmCorePlugin/lib/search/dmSearchIndexCommon.php
<?php abstract class dmSearchIndexCommon extends dmConfigurable { protected $dispatcher, $serviceContainer; public function __construct(sfServiceContainer $serviceContainer, array $options = array()) { $this->serviceContainer = $serviceContainer; $this->initialize($options); } protected ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchIndexGroup.php
dmCorePlugin/lib/search/dmSearchIndexGroup.php
<?php class dmSearchIndexGroup extends dmSearchIndexCommon { /** * The indices this group holds * * @var array */ protected $indices = array(); public function getIndices() { return $this->indices; } /** * Adds an index * * @param string $name The index name * @param xfInd...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchPager.php
dmCorePlugin/lib/search/dmSearchPager.php
<?php /** * The pager to separate results into more manageable segments. * * Page starts counting at 1. * */ class dmSearchPager extends sfPager { protected $hits; /** * Constructor. * * @param string $hits The search results * @param integer $maxPerPage Number of records to display per ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchPageDocument.php
dmCorePlugin/lib/search/dmSearchPageDocument.php
<?php class dmSearchPageDocument extends Zend_Search_Lucene_Document { protected static $pageViewQueryCache, $zonesQueryCache = array(); protected $context, $page, $pageContentCache, $options = array( 'boost_values' => array( 'body' => 1, 'slug' => 3, 'name' ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/dmSearchEngine.php
dmCorePlugin/lib/search/dmSearchEngine.php
<?php class dmSearchEngine extends dmSearchIndexGroup { protected function initialize(array $options) { parent::initialize($options); $this->setName(get_class($this)); $this->createIndices(); } public function setDir($dir) { $this->setOption('dir', $dir); foreach($this-...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/exception/dmSearchPageNotIndexableException.php
dmCorePlugin/lib/search/exception/dmSearchPageNotIndexableException.php
<?php class dmSearchPageNotIndexableException extends dmSearchIndexException { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/search/exception/dmSearchIndexException.php
dmCorePlugin/lib/search/exception/dmSearchIndexException.php
<?php class dmSearchIndexException extends dmException { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/menu/dmMenu.php
dmCorePlugin/lib/menu/dmMenu.php
<?php class dmMenu extends dmConfigurable implements ArrayAccess, Countable, IteratorAggregate { protected $serviceContainer, $helper, $user, $i18n, $name, $label, $link, $level, $num, $parent, $secure, $credentials = array(), $children = array(); public function __construct(dmBaseS...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/menu/dmSitemapMenu.php
dmCorePlugin/lib/menu/dmSitemapMenu.php
<?php class dmSitemapMenu extends dmMenu { public $hide = array(); public function build() { $pages = $this->getPagesQuery()->execute(array(), Doctrine_Core::HYDRATE_RECORD_HIERARCHY); $this->addPage($pages[0]); return $this; } protected function addPage(DmPage $page) { $pageMenu = ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmModuleComponent.php
dmCorePlugin/lib/module/dmModuleComponent.php
<?php class dmModuleComponent extends dmConfigurable { protected $key; public function __construct($key, array $options) { $this->key = $key; $this->options = $options; } public function isCachable() { return $this->getOption('cache', false); } public function getName() { retu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmModuleType.php
dmCorePlugin/lib/module/dmModuleType.php
<?php class dmModuleType { protected $name, $spaces, $slug; public function initialize($name, array $spaces = array()) { $this->name = $name; $this->spaces = $spaces; $this->slug = null; } /** * Bouh */ public function isProject() { return $this->name == 'Project';...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmModule.php
dmCorePlugin/lib/module/dmModule.php
<?php class dmModule extends dmMicroCache { /** * @var string */ protected $key; /** * @var dmModuleSpace */ protected $space; /** * @var array */ protected $options; /** * @var dmModuleSecurityManager */ protected $securityManager; /** * @var dmModuleManager */ protected static $mana...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmModuleSpace.php
dmCorePlugin/lib/module/dmModuleSpace.php
<?php class dmModuleSpace { protected $name, $type, $modules, $slug; public function initialize($name, dmModuleType $type, array $modules = array()) { $this->name = $name; $this->type = $type; $this->modules = $modules; $this->slug = null; } public function g...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmProjectModule.php
dmCorePlugin/lib/module/dmProjectModule.php
<?php class dmProjectModule extends dmModule { public function hasPage() { return $this->options['has_page']; } // ACCESSEURS public function getComponents() { return $this->options['components']; } public function getComponent($componentKey) { return isset($this->options['components']...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/module/dmModuleManager.php
dmCorePlugin/lib/module/dmModuleManager.php
<?php class dmModuleManager { protected $types, $modules, $projectModules, $modelModules; public function load(array $types, array $modules, array $projectModules, array $modelModules) { $this->types = $types; $this->modules = $modules; $this->projectModules = $projectModul...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/dmForm.php
dmCorePlugin/lib/form/dmForm.php
<?php /** * Diem form base class. * Extends the form component with diem-specific functionality. * * @package diem * @subpackage form * @author Your name here * @version SVN: $Id: sfPropelFormBaseTemplate.php 9304 2008-05-27 03:49:32Z dwhittle $ */ class dmForm extends sfFormSymfony { /** * @var...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/dmFormField.php
dmCorePlugin/lib/form/dmFormField.php
<?php class dmFormField extends sfFormField { protected $isRequired, $htmlBuffer = null; public function __toString() { if (null === $this->htmlBuffer) { return parent::__toString(); } $return = $this->htmlBuffer; $this->htmlBuffer = ''; return $return; } public functio...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/dmFormFilterDoctrine.php
dmCorePlugin/lib/form/dmFormFilterDoctrine.php
<?php abstract class dmFormFilterDoctrine extends sfFormFilterDoctrine { protected function setupNestedSet() { //die(print_r(get_class($this->getTable()),1)); if ($this->getTable() instanceof myDoctrineTable) { // unset NestedSet columns not needed as added in the getAutoFieldsToUnset() method ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/dmFormDoctrine.php
dmCorePlugin/lib/form/dmFormDoctrine.php
<?php /** * Diem form base class. * * @package diem * @subpackage form * @author Your name here * @version SVN: $Id: sfPropelFormBaseTemplate.php 9304 2008-05-27 03:49:32Z dwhittle $ */ abstract class dmFormDoctrine extends sfFormDoctrine { /** * @var integer */ const EMBEDDED_FORM_SAVE_BEFORE ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/dmFormFieldSchema.class.php
dmCorePlugin/lib/form/dmFormFieldSchema.class.php
<?php class dmFormFieldSchema extends sfFormFieldSchema { public function offsetGet($name) { if (!isset($this->fields[$name])) { if (null === $widget = $this->widget[$name]) { throw new InvalidArgumentException(sprintf('Widget "%s" does not exist.', $name)); } $error = isse...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmMailTemplateTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmMailTemplateTranslationForm.class.php
<?php /** * PluginDmMailTemplateTranslation form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmMailTemplateTranslationForm extends BaseDmMailTemplat...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmRedirectForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmRedirectForm.class.php
<?php /** * PluginDmRedirect form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ */ abstract class PluginDmRedirectForm extends BaseDmRedirectForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmLayoutForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmLayoutForm.class.php
<?php /** * PluginDmLayout form. * * @package form * @subpackage DmLayout * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmLayoutForm extends BaseDmLayoutForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmMediaForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmMediaForm.class.php
<?php /** * PluginDmMedia form. * * @package form * @subpackage DmMedia * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmMediaForm extends BaseDmMediaForm { public function setup() { parent::setup(); $this->mergeI18nForm(); $this->setUseF...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmWidgetTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmWidgetTranslationForm.class.php
<?php /** * PluginDmWidgetTranslation form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmWidgetTranslationForm extends BaseDmWidgetTranslationForm {...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmAutoSeoForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmAutoSeoForm.class.php
<?php /** * PluginDmAutoSeo form. * * @package form * @subpackage DmAutoSeo * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmAutoSeoForm extends BaseDmAutoSeoForm { protected $seoSynchronizer, $testRecord, $attributes; 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/form/doctrine/PluginDmPageForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmPageForm.class.php
<?php /** * PluginDmPage form. * * @package form * @subpackage DmPage * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmPageForm extends BaseDmPageForm { public function getAutoFieldsToUnset() { return array('created_at', 'updated_at'); ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmZoneForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmZoneForm.class.php
<?php /** * PluginDmZone form. * * @package form * @subpackage DmZone * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmZoneForm extends BaseDmZoneForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmWidgetForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmWidgetForm.class.php
<?php /** * PluginDmWidget form. * * @package form * @subpackage DmWidget * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmWidgetForm extends BaseDmWidgetForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmAreaForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmAreaForm.class.php
<?php /** * PluginDmArea form. * * @package form * @subpackage DmArea * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmAreaForm extends BaseDmAreaForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmPageViewForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmPageViewForm.class.php
<?php /** * PluginDmPageView form. * * @package form * @subpackage DmPageView * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmPageViewForm extends BaseDmPageViewForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmAutoSeoTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmAutoSeoTranslationForm.class.php
<?php /** * PluginDmAutoSeoTranslation form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmAutoSeoTranslationForm extends BaseDmAutoSeoTranslationFor...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmErrorForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmErrorForm.class.php
<?php /** * PluginDmError form. * * @package form * @subpackage DmError * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmErrorForm extends BaseDmErrorForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmSentMailForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmSentMailForm.class.php
<?php /** * PluginDmSentMail form. * * @package form * @subpackage DmSentMail * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmSentMailForm extends BaseDmSentMailForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmSettingTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmSettingTranslationForm.class.php
<?php /** * PluginDmSettingTranslation form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ */ abstract class PluginDmSettingTranslationForm extends BaseDmSettingTranslationForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/DmMediaForRecordForm.php
dmCorePlugin/lib/form/doctrine/DmMediaForRecordForm.php
<?php class DmMediaForRecordForm extends DmMediaForm { protected $record; public function configure() { parent::configure(); $this->widgetSchema['id']->setAttribute('class', 'dm_media_id'); $this->validatorSchema['id'] = new sfValidatorDoctrineChoice(array('model' => 'DmMedia', 'required' => fal...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmMediaFolderForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmMediaFolderForm.class.php
<?php /** * PluginDmMediaFolder form. * * @package form * @subpackage DmMediaFolder * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmMediaFolderForm extends BaseDmMediaFolderForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmMediaTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmMediaTranslationForm.class.php
<?php /** * PluginDmMediaTranslation form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmMediaTranslationForm extends BaseDmMediaTranslationForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmMailTemplateForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmMailTemplateForm.class.php
<?php /** * PluginDmMailTemplate form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ */ abstract class PluginDmMailTemplateForm extends BaseDmMailTemplateForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmSettingForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmSettingForm.class.php
<?php /** * PluginDmSetting form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id$ */ abstract class PluginDmSettingForm extends BaseDmSettingForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmPageTranslationForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmPageTranslationForm.class.php
<?php /** * PluginDmPageTranslation form. * * @package form * @subpackage DmPageTranslation * @version SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $ */ abstract class PluginDmPageTranslationForm extends BaseDmPageTranslationForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmCatalogueForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmCatalogueForm.class.php
<?php /** * PluginDmCatalogue form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmCatalogueForm extends BaseDmCatalogueForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/form/doctrine/PluginDmTransUnitForm.class.php
dmCorePlugin/lib/form/doctrine/PluginDmTransUnitForm.class.php
<?php /** * PluginDmTransUnit form. * * @package ##PROJECT_NAME## * @subpackage form * @author ##AUTHOR_NAME## * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ abstract class PluginDmTransUnitForm extends BaseDmTransUnitForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/data/dmDataLoad.php
dmCorePlugin/lib/data/dmDataLoad.php
<?php /** * Responsible for loading default data in the project * Such as superadmin user, basice pages and translations * */ class dmDataLoad { protected $dispatcher, $i18n, $configuration, $logCallable, $datas = array( "permissions", "groups", "users", "settings", "layouts", "...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/dmLog.php
dmCorePlugin/lib/log/dmLog.php
<?php abstract class dmLog extends dmConfigurable { public function getDefaultOptions() { return array( 'key' => preg_replace('|^(\w+)Log$|', '$1', get_class($this)), 'credentials' => 'see_log', 'name' => get_class($this) ); } public function initialize(array $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/log/dmLogEntry.php
dmCorePlugin/lib/log/dmLogEntry.php
<?php abstract class dmLogEntry { protected $serviceContainer, $request, $data; public function __construct(sfServiceContainer $serviceContainer) { $this->serviceContainer = $serviceContainer; $this->request = $this->serviceContainer->getService('request'); } abstract public function conf...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/dmFileLog.php
dmCorePlugin/lib/log/dmFileLog.php
<?php abstract class dmFileLog extends dmLog { protected $dispatcher, $filesystem, $serviceContainer, $options, $nbFields; public function __construct(sfEventDispatcher $dispatcher, dmFileSystem $filesystem, sfServiceContainer $serviceContainer, array $options = array()) { $this->dispatcher = $d...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/event/dmEventLogEntry.php
dmCorePlugin/lib/log/event/dmEventLogEntry.php
<?php class dmEventLogEntry extends dmLogEntry { protected static $recordsCache = array(); public function configure(array $data) { $userId = dmArray::get($data, 'user_id', $this->serviceContainer->getService('user')->getUserId()); if (!$userId && dmConfig::isCli()) { $userId = 'tas...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/event/dmEventLog.php
dmCorePlugin/lib/log/event/dmEventLog.php
<?php class dmEventLog extends dmFileLog { protected $fields = array( 'time', 'ip', 'session_id', 'user_id', 'action', 'type', 'subject', 'record' ); public function getDefaultOptions() { return array_merge(parent::getDefaultOptions(), array( 'name' =...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/request/dmRequestLogEntry.php
dmCorePlugin/lib/log/request/dmRequestLogEntry.php
<?php class dmRequestLogEntry extends dmLogEntry { const MEM_ALERT = 33554432; // 32 Mb const TIME_ALERT = 2000; // 2 s protected static $browsersCache = array(), $usersCache = array(); public function configure(array $data) { $isXhr = $data['context']->getRequest()->isXmlHttpReques...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/log/request/dmRequestLog.php
dmCorePlugin/lib/log/request/dmRequestLog.php
<?php class dmRequestLog extends dmFileLog { protected $fields = array( 'time', 'uri', 'code', 'app', 'env', 'ip', 'user_id', 'user_agent', 'xhr', 'mem', 'timer', 'cache' ); public function getDefaultOptions() { return array_merge(parent::getDefaultOptio...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorCssIdAndClasses.php
dmCorePlugin/lib/validator/dmValidatorCssIdAndClasses.php
<?php class dmValidatorCssIdAndClasses 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/validator/dmValidatorPhpClass.php
dmCorePlugin/lib/validator/dmValidatorPhpClass.php
<?php class dmValidatorPhpClass extends sfValidatorString { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->addOption('implements'); $this->addMessage('notfound', 'This PHP class does not exist.'); $this->addMessage('notim...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorYaml.php
dmCorePlugin/lib/validator/dmValidatorYaml.php
<?php class dmValidatorYaml extends sfValidatorString { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setMessage('invalid', 'This is not a valid YAML definition.'); } /** * @see sfValidatorUrl */ protected function ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorDmActions.class.php
dmCorePlugin/lib/validator/dmValidatorDmActions.class.php
<?php class dmValidatorDmActions extends sfValidatorChoice { 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/validator/dmValidatorCssSize.php
dmCorePlugin/lib/validator/dmValidatorCssSize.php
<?php class dmValidatorCssSize extends sfValidatorRegex { protected function configure($options = array(), $messages = array()) { $messages['out_of_range'] = 'Enter a size between 0 and 8000'; parent::configure($options, $messages); $this->setMessage('invalid', 'This size is not valid.'); $this...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorDmModules.class.php
dmCorePlugin/lib/validator/dmValidatorDmModules.class.php
<?php class dmValidatorDmModules extends sfValidatorChoice { public function __construct($options = array(), $attributes = array()) { $modules = dmContext::getInstance()->getModuleManager()->getModules(); $options['choices'] = array_combine($modules, $modules); parent::__construct($options, $attributes)...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorHexColor.php
dmCorePlugin/lib/validator/dmValidatorHexColor.php
<?php class dmValidatorHexColor extends sfValidatorRegex { protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setMessage('invalid', 'This is not a valid hexadecimal color'); $this->setOption('pattern', '|^#?[\dA-F]{6}$|i'); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorStringEscape.php
dmCorePlugin/lib/validator/dmValidatorStringEscape.php
<?php class dmValidatorStringEscape extends sfValidatorString { /** * @see sfValidatorString */ protected function doClean($value) { return parent::doClean(dmString::escape((string) $value)); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/validator/dmValidatorDate.class.php
dmCorePlugin/lib/validator/dmValidatorDate.class.php
<?php class dmValidatorDate extends sfValidatorDate { /** * Configures the current validator. * * Available options: * * * date_format: A regular expression that dates must match * * with_time: true if the validator must return a time, false otherwise * * date_output...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false