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/dmFrontPlugin/lib/user/dmFrontUser.php
dmFrontPlugin/lib/user/dmFrontUser.php
<?php class dmFrontUser extends dmCoreUser { protected $themeManager; public function listenToContextLoadedEvent(sfEvent $e) { parent::listenToContextLoadedEvent($e); $this->setThemeManager($e->getSubject()->get('theme_manager')); $this->getTheme(); } public function setThem...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/user/dmFrontUserClipboard.php
dmFrontPlugin/lib/user/dmFrontUserClipboard.php
<?php class dmFrontUserClipboard { protected $user; public function __construct(dmFrontUser $user) { $this->user = $user; } public function getWidget() { return ($data = $this->load('widget')) ? dmDb::table('DmWidget')->findOneByIdWithI18n($data['id']) : null; } public function getMethod()...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/generator/dmFrontActionTemplateGenerator.php
dmFrontPlugin/lib/generator/dmFrontActionTemplateGenerator.php
<?php class dmFrontActionTemplateGenerator extends dmFrontModuleGenerator { public function execute() { $dir = dmOs::join($this->moduleDir, 'templates'); if (!$this->filesystem->mkdir($dir)) { $this->logError('can not create directory '.$dir); } $success = true; foreach($this->mod...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/generator/dmFrontComponentGenerator.php
dmFrontPlugin/lib/generator/dmFrontComponentGenerator.php
<?php class dmFrontComponentGenerator extends dmFrontModuleGenerator { protected $class, $indentation = ' '; public function execute() { require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/Zend/Reflection/File.php')); require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/Z...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/generator/dmFrontModuleGenerator.php
dmFrontPlugin/lib/generator/dmFrontModuleGenerator.php
<?php abstract class dmFrontModuleGenerator { protected $module, $dispatcher, $filesystem, $moduleDir, $formatter; public function __construct(dmProjectModule $module, sfEventDispatcher $dispatcher, dmFilesystem $filesystem, $moduleDir) { $this->module = $module; $this->dispatcher = $dispatch...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/generator/dmFrontActionGenerator.php
dmFrontPlugin/lib/generator/dmFrontActionGenerator.php
<?php class dmFrontActionGenerator extends dmFrontModuleGenerator { protected $class, $indentation = ' '; public function execute() { require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/Zend/Reflection/File.php')); require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/Zen...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/myFrontModuleActions.php
dmFrontPlugin/lib/action/myFrontModuleActions.php
<?php class myFrontModuleActions extends dmFrontModuleActions { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/myFrontModuleComponents.php
dmFrontPlugin/lib/action/myFrontModuleComponents.php
<?php class myFrontModuleComponents extends dmFrontModuleComponents { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/myFrontBaseComponents.php
dmFrontPlugin/lib/action/myFrontBaseComponents.php
<?php class myFrontBaseComponents extends dmFrontBaseComponents { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/myFrontBaseActions.php
dmFrontPlugin/lib/action/myFrontBaseActions.php
<?php class myFrontBaseActions extends dmFrontBaseActions { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/base/dmFrontBaseComponents.php
dmFrontPlugin/lib/action/base/dmFrontBaseComponents.php
<?php class dmFrontBaseComponents extends dmBaseComponents { protected $forms; /** * Initializes this component. * * @param sfContext $context The current application context. * @param string $moduleName The module name. * @param string $actionName The action name. * * @return bo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/base/dmFrontModuleComponents.php
dmFrontPlugin/lib/action/base/dmFrontModuleComponents.php
<?php class dmFrontModuleComponents extends myFrontBaseComponents { protected $dmModule; /** * Add required stuff to the record query * @param string $rootAlias The root alias for this query * @return myDoctrineQuery */ protected function getShowQuery($rootAlias = 'root') { $query =...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/base/dmFrontModuleActions.php
dmFrontPlugin/lib/action/base/dmFrontModuleActions.php
<?php class dmFrontModuleActions extends myFrontBaseActions { protected $dmModule; /** * @return dmProjectModule the current module for this action */ protected function getDmModule() { if (null === $this->dmModule) { $this->dmModule = $this->context->getModuleManager()->getModule(preg...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/action/base/dmFrontBaseActions.php
dmFrontPlugin/lib/action/base/dmFrontBaseActions.php
<?php class dmFrontBaseActions extends dmBaseActions { protected $forms; /** * Initializes this component. * * @param sfContext $context The current application context. * @param string $moduleName The module name. * @param string $actionName The action name. * * @return boolean ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/exception/dmPageNotFoundException.php
dmFrontPlugin/lib/exception/dmPageNotFoundException.php
<?php class dmPageNotFoundException extends dmException { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/i18n/dmFrontI18n.php
dmFrontPlugin/lib/i18n/dmFrontI18n.php
<?php class dmFrontI18n extends dmI18n { /** * Search first in requested catalogue, then in dm catalogue */ public function __($string, $args = array(), $catalogue = 'messages') { /** * If null is passed as $catalogue, the default value 'messages' is not set! Why? * Solution: -> force set to...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/dmFrontPageTreeView.php
dmFrontPlugin/lib/view/html/dmFrontPageTreeView.php
<?php class dmFrontPageTreeView extends dmPageTreeView { protected function renderPageLink(array $page) { if(sfConfig::get('dm_i18n_prefix_url')){ $page[6] = $this->culture . (strlen($page[6])>0 ? '/' . $page[6] : ''); } return '<a href="'.$page[6].'" data-page-id="'.$page[0].'"><ins></ins...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/dmFrontHtmlSitemap.php
dmFrontPlugin/lib/view/html/dmFrontHtmlSitemap.php
<?php /* * Deprecated * Use dmSitemapMenu instead */ class dmFrontHtmlSitemap { protected $helper, $culture; public function __construct(dmHelper $helper, $culture) { $this->helper = $helper; $this->culture = $culture; } public function render() { return $this->renderPage($this->get...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/dmFrontHelperExtension.php
dmFrontPlugin/lib/view/html/dmFrontHelperExtension.php
<?php class dmFrontHelperExtension { protected $dispatcher, $serviceContainer; public function __construct(sfEventDispatcher $dispatcher, dmFrontBaseServiceContainer $serviceContainer) { $this->dispatcher = $dispatcher; $this->serviceContainer = $serviceContainer; } public function connec...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/dmFrontToolBarView.php
dmFrontPlugin/lib/view/html/dmFrontToolBarView.php
<?php class dmFrontToolBarView extends dmToolBarView { public function render() { return $this->helper->open('div#dm_tool_bar.dm.clearfix.'.sfConfig::get('dm_toolBar_flavour', 'blue')). $this->renderClearCache(). $this->renderCodeEditor(). $this->renderCultureSelect(). $this->renderThemeSel...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/layout/dmFrontLayoutHelper.php
dmFrontPlugin/lib/view/html/layout/dmFrontLayoutHelper.php
<?php class dmFrontLayoutHelper extends dmCoreLayoutHelper { protected $page; protected function initialize(array $options) { parent::initialize($options); if(!$currentPage = $this->serviceContainer->getParameter('context.page')) { throw new dmException('Can not use Diem layout helper bec...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/page/dmFrontPageViewHelper.php
dmFrontPlugin/lib/view/html/page/dmFrontPageViewHelper.php
<?php class dmFrontPageViewHelper extends dmFrontPageBaseHelper { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/page/dmFrontPageBaseHelper.php
dmFrontPlugin/lib/view/html/page/dmFrontPageBaseHelper.php
<?php abstract class dmFrontPageBaseHelper extends dmConfigurable { protected $dispatcher, $serviceContainer, $helper, $page, $areas, $global_area_id, $global_areas, $area_fallBackCulture, $area_culture, $area_lid, $area_vid; public function __construct(sfEventDispatcher $dispatcher, sfServiceContainer $...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/page/dmFrontPageEditHelper.php
dmFrontPlugin/lib/view/html/page/dmFrontPageEditHelper.php
<?php class dmFrontPageEditHelper extends dmFrontPageBaseHelper { protected $user, $i18n, $widgetTypeManager; public function initialize(array $options) { parent::initialize($options); /* * Prepare some services for later access */ $this->user = $this->serviceContainer->getService('...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/dmFrontLinkTagFactory.php
dmFrontPlugin/lib/view/html/link/dmFrontLinkTagFactory.php
<?php class dmFrontLinkTagFactory extends dmBaseLinkTagFactory { public function buildLink($source) { try { $this->serviceContainer->setParameter( 'link_tag.resource', $resource = $this->serviceContainer->getService('link_resource')->initialize($source) ); return...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/dmFrontLinkResource.php
dmFrontPlugin/lib/view/html/link/dmFrontLinkResource.php
<?php class dmFrontLinkResource { protected $source, $subject, $type, $params; public function getType() { return $this->type; } public function getSubject() { return $this->subject; } public function setSubject($subject) { $this->subject = $subject; } pu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagError.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagError.php
<?php class dmFrontLinkTagError extends dmFrontLinkTag { protected $exception; protected function initialize(array $options = array()) { parent::initialize($options); $this->exception = $this->resource->getSubject(); } protected function getBaseHref() { return dmArray::get($this->requ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagRecord.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagRecord.php
<?php class dmFrontLinkTagRecord extends dmFrontLinkTagPage { protected $record; protected function initialize(array $options = array()) { $this->record = $this->resource->getSubject(); $this->resource->setSubject($this->record->getDmPage()); if (!$this->resource->getSubject() instanceof DmP...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagUri.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagUri.php
<?php class dmFrontLinkTagUri extends dmFrontLinkTag { protected $uri, $controller; public function __construct(dmFrontLinkResource $resource, sfWebController $controller, array $requestContext, array $options = array()) { $this->controller = $controller; parent::__construct($resource, $reque...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagMedia.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagMedia.php
<?php class dmFrontLinkTagMedia extends dmFrontLinkTag { protected $media; protected function initialize(array $options = array()) { parent::initialize($options); $this->media = $this->resource->getSubject(); } protected function getBaseHref() { return $this->requestContext['absolute...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagRoute.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagRoute.php
<?php class dmFrontLinkTagRoute extends dmFrontLinkTag { protected $route, $controller, $routing; public function __construct(dmFrontLinkResource $resource, sfWebController $controller, dmFrontRouting $routing, array $requestContext, array $options = array()) { $this->controller = $controller; $...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTag.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTag.php
<?php abstract class dmFrontLinkTag extends dmBaseLinkTag { protected $requestContext; public function __construct(dmFrontLinkResource $resource, array $requestContext, array $options = array()) { $this->resource = $resource; $this->requestContext = $requestContext; $this->initialize(...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagAction.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagAction.php
<?php class dmFrontLinkTagAction extends dmFrontLinkTag { protected $action, $controller; public function __construct(dmFrontLinkResource $resource, sfWebController $controller, array $requestContext, array $options = array()) { $this->controller = $controller; parent::__construct($resour...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagPage.php
dmFrontPlugin/lib/view/html/link/tag/dmFrontLinkTagPage.php
<?php class dmFrontLinkTagPage extends dmFrontLinkTag { protected $user, $page, // the page we link to $currentPage; // the page where the link is displayed public function __construct(dmFrontLinkResource $resource, array $requestContext, DmPage $currentPage = null, dmCoreUser $user = null, array $op...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/html/widget/dmFrontWidgetRenderer.php
dmFrontPlugin/lib/view/html/widget/dmFrontWidgetRenderer.php
<?php class dmFrontWidgetRenderer { protected $dispatcher, $serviceContainer, $widget, $widgetView, $isRendered, $html, $stylesheets, $javascripts; public function __construct(sfEventDispatcher $dispatcher, dmFrontBaseServiceContainer $serviceContainer, $widget) { $this->dispatcher =...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/view/theme/dmThemeManager.php
dmFrontPlugin/lib/view/theme/dmThemeManager.php
<?php class dmThemeManager extends dmConfigurable { protected $dispatcher, $serviceContainer, $themes; public function __construct(sfEventDispatcher $dispatcher, sfServiceContainer $serviceContainer, array $options) { $this->dispatcher = $dispatcher; $this->serviceContainer = $serviceContain...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/pager/dmFrontPagerView.php
dmFrontPlugin/lib/pager/dmFrontPagerView.php
<?php class dmFrontPagerView extends dmConfigurable implements Iterator, Countable { protected $pager, $context, $helper, $baseHref, $navigationCache = array(); public function __construct(dmContext $context, array $options = array()) { $this->context = $context; $this->helper = $context->g...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/helper/DmFrontHelper.php
dmFrontPlugin/lib/helper/DmFrontHelper.php
<?php /** * Render a widget * * @return (string) the HTML produced by the widget */ function dm_get_widget($module, $action, array $params = array()) { return dmContext::getInstance()->getHelper()->getWidget($module, $action, $params); } /** * @return $return if $source is the current page */ function dm_curr...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/config/dmFrontRoutingConfigHandler.php
dmFrontPlugin/lib/config/dmFrontRoutingConfigHandler.php
<?php class dmFrontRoutingConfigHandler extends sfRoutingConfigHandler { protected function parse($configFiles) { // parse the yaml $rawConfig = self::getConfiguration($configFiles); $dmFrontConfig = self::parseYamls(array( dmOs::join(sfConfig::get('dm_front_dir'), 'config/routing.yml') ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/config/dmFrontModuleManagerConfigHandler.php
dmFrontPlugin/lib/config/dmFrontModuleManagerConfigHandler.php
<?php require_once(sfConfig::get('dm_core_dir').'/lib/config/dmModuleManagerConfigHandler.php'); class dmFrontModuleManagerConfigHandler extends dmModuleManagerConfigHandler { protected function fixModuleConfig($moduleKey, $moduleConfig, $isInProject) { $moduleOptions = parent::fixModuleConfig($moduleKey, $m...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/config/dmFrontApplicationConfiguration.php
dmFrontPlugin/lib/config/dmFrontApplicationConfiguration.php
<?php require_once(realpath(dirname(__FILE__).'/../../../dmCorePlugin/lib/config/dmApplicationConfiguration.php')); /** * sfConfiguration represents a configuration for a symfony application. * * @package symfony * @subpackage config * @author Fabien Potencier <fabien.potencier@symfony-project.com> * @ve...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/menu/dmFrontCodeEditorFileMenu.php
dmFrontPlugin/lib/menu/dmFrontCodeEditorFileMenu.php
<?php class dmFrontCodeEditorFileMenu extends dmMenu { public function build() { $this ->name('Front code editor add menu') ->ulClass('clearfix level0') ->addFiles(); $this->serviceContainer->get('dispatcher')->notify(new sfEvent($this, 'dm.front.code_editor_file_menu', array())); return...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/menu/dmFrontAddMenu.php
dmFrontPlugin/lib/menu/dmFrontAddMenu.php
<?php class dmFrontAddMenu extends dmMenu { public function build() { $this ->name('Front add menu') ->ulClass('ui-helper-reset level0') ->addChild('Add') ->setOption('root_add', true) ->ulClass('ui-widget ui-widget-content level1') ->liClass('ui-corner-bottom ui-state-default') ->...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/form/dmFormManager.php
dmFrontPlugin/lib/form/dmFormManager.php
<?php class dmFormManager implements ArrayAccess { protected $serviceContainer, $dispatcher, $forms; public function __construct(dmFrontServiceContainer $serviceContainer, sfEventDispatcher $dispatcher) { $this->serviceContainer = $serviceContainer; $this->dispatcher = $dispatcher; $t...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/form/dmFormNotFoundException.php
dmFrontPlugin/lib/form/dmFormNotFoundException.php
<?php class dmFormNotFoundException extends dmException { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/breadCrumb/dmWidgetNavigationBreadCrumbForm.php
dmFrontPlugin/lib/dmWidget/breadCrumb/dmWidgetNavigationBreadCrumbForm.php
<?php class dmWidgetNavigationBreadCrumbForm extends dmWidgetPluginForm { public function configure() { $this->widgetSchema['separator'] = new sfWidgetFormInputText(); $this->widgetSchema['includeCurrent'] = new sfWidgetFormInputCheckBox(); $this->widgetSchema['includeInactivePages'] = new sfWidgetFor...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/breadCrumb/dmWidgetNavigationBreadCrumbView.php
dmFrontPlugin/lib/dmWidget/breadCrumb/dmWidgetNavigationBreadCrumbView.php
<?php class dmWidgetNavigationBreadCrumbView extends dmWidgetPluginView { protected $isIndexable = false; public function getRequiredVars() { return array('separator', 'includeCurrent'); } protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); $va...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/image/dmWidgetContentImageForm.php
dmFrontPlugin/lib/dmWidget/image/dmWidgetContentImageForm.php
<?php class dmWidgetContentImageForm extends dmWidgetContentBaseMediaForm { public function configure() { parent::configure(); $this->widgetSchema['legend'] = new sfWidgetFormInputText(); $this->validatorSchema['legend'] = new sfValidatorString(array( 'required' => false )); $th...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/image/dmWidgetContentImageView.php
dmFrontPlugin/lib/dmWidget/image/dmWidgetContentImageView.php
<?php class dmWidgetContentImageView extends dmWidgetContentBaseMediaView { public function configure() { parent::configure(); $this->addRequiredVar('method'); } protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); if ($vars['mediaTag']) ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/dmWidgetBaseView.php
dmFrontPlugin/lib/dmWidget/base/dmWidgetBaseView.php
<?php abstract class dmWidgetBaseView { protected $context, $widgetType, $widget, $requiredVars = array(), $isIndexable = true, $vars, $javascripts = array(), $stylesheets = array(); public function __construct(dmContext $context, dmWidgetType $type, array $data) { $this->context = $c...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/dmWidgetBaseForm.php
dmFrontPlugin/lib/dmWidget/base/dmWidgetBaseForm.php
<?php abstract class dmWidgetBaseForm extends dmForm { protected $dmWidget, $stylesheets = array(), $javascripts = array(); /** * Constructor. * * @param dmWidget $widget A widget * @param array $options An array of options * @param string $CSRFSecret A CSRF secret (false to disable ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/plugin/dmWidgetPluginForm.php
dmFrontPlugin/lib/dmWidget/base/plugin/dmWidgetPluginForm.php
<?php abstract class dmWidgetPluginForm extends dmWidgetBaseForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/plugin/dmWidgetPluginView.php
dmFrontPlugin/lib/dmWidget/base/plugin/dmWidgetPluginView.php
<?php abstract class dmWidgetPluginView extends dmWidgetBaseView { protected function getPartialModuleAction() { return array('dmWidget', $this->widgetType->getFullKey()); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/dmWidgetProjectForm.php
dmFrontPlugin/lib/dmWidget/base/project/dmWidgetProjectForm.php
<?php abstract class dmWidgetProjectForm extends dmWidgetBaseForm { protected $dmModule, $dmComponent; public function setup() { parent::setup(); if (!$this->dmModule = self::$serviceContainer->getService('module_manager')->getModule($this->dmWidget->get('module'))) { throw new dmExceptio...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/dmWidgetProjectView.php
dmFrontPlugin/lib/dmWidget/base/project/dmWidgetProjectView.php
<?php abstract class dmWidgetProjectView extends dmWidgetBaseView { protected $dmModule, $dmComponent; protected function configure() { parent::configure(); if (!$this->dmModule = $this->getService('module_manager')->getModule($this->widget['module'])) { throw new dmException('the modul...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/model/dmWidgetProjectModelForm.php
dmFrontPlugin/lib/dmWidget/base/project/model/dmWidgetProjectModelForm.php
<?php abstract class dmWidgetProjectModelForm extends dmWidgetProjectForm { public function setup() { parent::setup(); if (!$this->dmModule->hasModel()) { throw new dmException('the module "%s" has no model'); } } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/model/dmWidgetProjectModelView.php
dmFrontPlugin/lib/dmWidget/base/project/model/dmWidgetProjectModelView.php
<?php abstract class dmWidgetProjectModelView extends dmWidgetProjectView { protected function configure() { parent::configure(); if (!$this->dmModule->getTable()) { throw new dmException(sprintf('the module "%s" has no table', $this->dmModule->getKey())); } } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/simple/dmWidgetSimpleView.php
dmFrontPlugin/lib/dmWidget/base/project/simple/dmWidgetSimpleView.php
<?php class dmWidgetSimpleView extends dmWidgetProjectView { public function getRequiredVars() { return array(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/simple/dmWidgetSimpleForm.php
dmFrontPlugin/lib/dmWidget/base/project/simple/dmWidgetSimpleForm.php
<?php class dmWidgetSimpleForm extends dmWidgetProjectForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/form/dmWidgetFormForm.php
dmFrontPlugin/lib/dmWidget/base/project/form/dmWidgetFormForm.php
<?php class dmWidgetFormForm extends dmWidgetProjectForm { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/base/project/form/dmWidgetFormView.php
dmFrontPlugin/lib/dmWidget/base/project/form/dmWidgetFormView.php
<?php class dmWidgetFormView extends dmWidgetProjectView { protected $isIndexable = false; public function getRequiredVars() { return array(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/list/dmWidgetListForm.php
dmFrontPlugin/lib/dmWidget/list/dmWidgetListForm.php
<?php class dmWidgetListForm extends dmWidgetProjectModelForm { public function configure() { // Max per page $this->widgetSchema['maxPerPage'] = new sfWidgetFormInputText(array(), array( 'size' => 3 )); $this->validatorSchema['maxPerPage'] = new sfValidatorInteger(array( 'required...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/list/dmWidgetListView.php
dmFrontPlugin/lib/dmWidget/list/dmWidgetListView.php
<?php class dmWidgetListView extends dmWidgetProjectModelView { public function configure() { parent::configure(); $this->addRequiredVar(array('orderField', 'orderType')); foreach($this->dmComponent->getOption('filters', array()) as $filter) { if ($filterModule = $this->dmModule->getAncest...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/title/dmWidgetContentTitleView.php
dmFrontPlugin/lib/dmWidget/title/dmWidgetContentTitleView.php
<?php class dmWidgetContentTitleView extends dmWidgetPluginView { public function configure() { parent::configure(); $this->addRequiredVar(array('text', 'tag')); } protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); $vars['text'] = nl2br...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/title/dmWidgetContentTitleForm.php
dmFrontPlugin/lib/dmWidget/title/dmWidgetContentTitleForm.php
<?php class dmWidgetContentTitleForm extends dmWidgetPluginForm { public function configure() { $this->widgetSchema['text'] = new sfWidgetFormTextarea(array(), array( 'rows' => 2 )); $this->widgetSchema['tag'] = new sfWidgetFormChoice(array('choices' => $this->getTagNames())); $this->w...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/show/dmWidgetShowView.php
dmFrontPlugin/lib/dmWidget/show/dmWidgetShowView.php
<?php class dmWidgetShowView extends dmWidgetProjectModelView { public function configure() { parent::configure(); if (!$this->allowAutoRecordId()) { $this->addRequiredVar(array('recordId')); } } protected function allowAutoRecordId() { return $this->context->getPage() ? $this->c...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/show/dmWidgetShowForm.php
dmFrontPlugin/lib/dmWidget/show/dmWidgetShowForm.php
<?php class dmWidgetShowForm extends dmWidgetProjectModelForm { public function configure() { /* * Record id */ $this->widgetSchema['recordId'] = new sfWidgetFormDoctrineChoice(array( 'model' => $this->dmModule->getModel(), 'add_empty' => $this->allowAutoRecordId() ? sp...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/media/dmWidgetContentBaseMediaView.php
dmFrontPlugin/lib/dmWidget/media/dmWidgetContentBaseMediaView.php
<?php /* * Generic class to handle media based widgets */ abstract class dmWidgetContentBaseMediaView extends dmWidgetPluginView { public function configure() { parent::configure(); $this->addRequiredVar('mediaId'); } protected function filterViewVars(array $vars = array()) { $vars = paren...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/media/dmWidgetContentBaseMediaForm.php
dmFrontPlugin/lib/dmWidget/media/dmWidgetContentBaseMediaForm.php
<?php /* * Generic class to handle media based widgets */ abstract class dmWidgetContentBaseMediaForm extends dmWidgetPluginForm { public function configure() { $this->configureMediaFields(); $this->widgetSchema['width'] = new sfWidgetFormInputText(array(), array('size' => 5)); $this->validatorSchem...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchFormForm.php
dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchFormForm.php
<?php class dmWidgetSearchFormForm extends dmWidgetPluginForm { public function configure() { parent::configure(); dmDb::table('DmPage')->checkSearchPage(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchResultsForm.php
dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchResultsForm.php
<?php class dmWidgetSearchResultsForm extends dmWidgetPluginForm { public function configure() { parent::configure(); /// Max per page $this->widgetSchema['maxPerPage'] = new sfWidgetFormInputText(array( 'label' => 'Per page' ), array( 'size' => 3 )); $this->validatorSchem...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchFormView.php
dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchFormView.php
<?php class dmWidgetSearchFormView extends dmWidgetPluginView { protected $isIndexable = false; protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); $vars['form'] = new mySearchForm(); if ($requestQuery = $this->getService('request')->getParam...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchResultsView.php
dmFrontPlugin/lib/dmWidget/search/dmWidgetSearchResultsView.php
<?php class dmWidgetSearchResultsView extends dmWidgetPluginView { protected $isIndexable = false; protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); $vars['form'] = new mySearchForm(); $vars['form']->bind(array('query' => $this->getService(...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/form/dmSearchForm.php
dmFrontPlugin/lib/dmWidget/search/form/dmSearchForm.php
<?php class dmSearchForm extends BaseForm { public function configure() { $this->setName('search') ->widgetSchema->setNameFormat('%s'); $this->widgetSchema['query'] = new sfWidgetFormInputText(array( 'label' => 'Query' )); $this->validatorSchema['query'] = new sfValidatorString...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/search/form/mySearchForm.php
dmFrontPlugin/lib/dmWidget/search/form/mySearchForm.php
<?php class mySearchForm extends dmSearchForm { public function configure() { parent::configure(); // overload me ! } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/menu/dmWidgetNavigationMenuForm.php
dmFrontPlugin/lib/dmWidget/menu/dmWidgetNavigationMenuForm.php
<?php class dmWidgetNavigationMenuForm extends dmWidgetPluginForm { public function configure() { $this->validatorSchema['link'] = new sfValidatorPass(); $this->validatorSchema['text'] = new sfValidatorPass(); $this->validatorSchema['secure'] = new sfValidatorPass(); $this->validatorSchema['nofoll...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/menu/dmWidgetNavigationMenuView.php
dmFrontPlugin/lib/dmWidget/menu/dmWidgetNavigationMenuView.php
<?php class dmWidgetNavigationMenuView extends dmWidgetPluginView { protected $isIndexable = false; public function configure() { parent::configure(); $this->addRequiredVar(array('items', 'ulClass', 'liClass')); } protected function filterViewVars(array $vars = array()) { $vars = parent::f...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/text/dmWidgetContentTextForm.php
dmFrontPlugin/lib/dmWidget/text/dmWidgetContentTextForm.php
<?php class dmWidgetContentTextForm extends dmWidgetContentImageForm { public function configure() { parent::configure(); $this->widgetSchema['title'] = new sfWidgetFormInputText(); $this->validatorSchema['title'] = new sfValidatorString(array('required' => false)); $this->widgetSchema['...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/text/dmWidgetContentTextView.php
dmFrontPlugin/lib/dmWidget/text/dmWidgetContentTextView.php
<?php class dmWidgetContentTextView extends dmWidgetContentImageView { public function configure() { parent::configure(); $this->removeRequiredVar(array('mediaId', 'method')); $this->addRequiredVar('titlePosition'); } public function filterViewVars(array $vars = array()) { $vars = parent::...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkForm.php
dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkForm.php
<?php class dmWidgetContentLinkForm extends dmWidgetPluginForm { public function configure() { $this->widgetSchema['href'] = new sfWidgetFormInputText(array(), array( 'class' => 'dm_link_droppable', 'title' => $this->__('Accepts pages, medias and urls') )); $this->validatorSchema[...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkView.php
dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkView.php
<?php class dmWidgetContentLinkView extends dmWidgetPluginView { public function configure() { parent::configure(); $this->addRequiredVar(array('href')); } protected function filterViewVars(array $vars = array()) { $vars = parent::filterViewVars($vars); $vars['text'] = nl2br($vars['...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/handler/dmPageNotFoundHandler.php
dmFrontPlugin/lib/handler/dmPageNotFoundHandler.php
<?php class dmPageNotFoundHandler { protected $dispatcher; public function __construct(dmFrontServiceContainer $serviceContainer, sfEventDispatcher $dispatcher) { $this->serviceContainer = $serviceContainer; $this->dispatcher = $dispatcher; } public function getRedirection($slug) { if...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/response/asset/dmFrontAssetConfig.php
dmFrontPlugin/lib/response/asset/dmFrontAssetConfig.php
<?php class dmFrontAssetConfig extends dmAssetConfig { protected function _getStylesheets() { if ($this->userCanEdit()) { return array( 'lib.reset', sfConfig::get('sf_web_debug') ? 'lib.symfony_debug' : null, 'front.dmReset', 'lib.ui', 'lib.ui-dialog', ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/lib/debug/dmFrontWebDebug.php
dmFrontPlugin/lib/debug/dmFrontWebDebug.php
<?php class dmFrontWebDebug extends dmWebDebug { /** * Configures the web debug toolbar. */ public function configure() { if (sfConfig::get('sf_debug') && sfConfig::get('sf_cache')) { $this->setPanel('cache', new sfWebDebugPanelCache($this)); } if (sfConfig::get('sf_logging_enabl...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmFrontPlugin/config/dmFrontPluginConfiguration.class.php
dmFrontPlugin/config/dmFrontPluginConfiguration.class.php
<?php class dmFrontPluginConfiguration extends sfPluginConfiguration { protected static $dependencies = array(), $helpers = array('Dm', 'DmFront'), $externalModules = array('dmUser'); public function configure() { sfConfig::set('dm_front_dir', realpath(dirname(__FILE__)."/..")); sfConfig::set('dm_...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/bootstrap/functional.php
dmCorePlugin/test/bootstrap/functional.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. */ // guess current application if (!isset($app)) { $trace...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/setup.php
dmCorePlugin/test/project/setup.php
<? chdir(__DIR__); passthru('rm data/*.sqlite'); passthru('php symfony doctrine:drop-db --env=test --no-confirmation'); passthru('php symfony doctrine:create-db --env=test'); passthru('php symfony doctrine:insert-sql --env=test'); passthru('php symfony dm:setup -n --env=test'); passthru('php symfony dm:data --env=tes...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/symfony.php
dmCorePlugin/test/project/symfony.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. */ chdir(dirname(__FILE__)); require_once(dirname(__FILE__).'/config/...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestPost/actions/actions.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestPost/actions/actions.class.php
<?php require_once dirname(__FILE__).'/../lib/dmTestPostGeneratorConfiguration.class.php'; require_once dirname(__FILE__).'/../lib/dmTestPostGeneratorHelper.class.php'; /** * dmTestPost actions. * * @package retest * @subpackage dmTestPost * @author Your name here * @version SVN: $Id: actions.class.ph...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/DmTestPostAdminExport.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/DmTestPostAdminExport.class.php
<?php /** * dmTestPost admin export * * @package retest * @subpackage dmTestPost * @author Your name here */ class DmTestPostAdminExport extends myDoctrineTableExport { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/dmTestPostGeneratorConfiguration.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/dmTestPostGeneratorConfiguration.class.php
<?php /** * dmTestPost module configuration. * * @package retest * @subpackage dmTestPost * @author Your name here * @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ */ class dmTestPostGeneratorConfiguration extends BaseDmTestPostGeneratorConfiguration { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/dmTestPostGeneratorHelper.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/dmTestPostGeneratorHelper.class.php
<?php /** * dmTestPost module helper. * * @package retest * @subpackage dmTestPost * @author Your name here * @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ */ class dmTestPostGeneratorHelper extends BaseDmTestPostGeneratorHelper { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/DmTestPostAdminForm.php
dmCorePlugin/test/project/apps/admin/modules/dmTestPost/lib/DmTestPostAdminForm.php
<?php /** * dmTestPost admin form * * @package retest * @subpackage dmTestPost * @author Your name here */ class DmTestPostAdminForm extends BaseDmTestPostForm { public function configure() { parent::configure(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestTag/actions/actions.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestTag/actions/actions.class.php
<?php require_once dirname(__FILE__).'/../lib/dmTestTagGeneratorConfiguration.class.php'; require_once dirname(__FILE__).'/../lib/dmTestTagGeneratorHelper.class.php'; /** * dmTestTag actions. * * @package retest * @subpackage dmTestTag * @author Your name here * @version SVN: $Id: actions.class.php 12...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/dmTestTagGeneratorConfiguration.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/dmTestTagGeneratorConfiguration.class.php
<?php /** * dmTestTag module configuration. * * @package retest * @subpackage dmTestTag * @author Your name here * @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ */ class dmTestTagGeneratorConfiguration extends BaseDmTestTagGeneratorConfiguration { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/DmTestTagAdminForm.php
dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/DmTestTagAdminForm.php
<?php /** * dmTestTag admin form * * @package retest * @subpackage dmTestTag * @author Your name here */ class DmTestTagAdminForm extends BaseDmTestTagForm { public function configure() { parent::configure(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/dmTestTagGeneratorHelper.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/dmTestTagGeneratorHelper.class.php
<?php /** * dmTestTag module helper. * * @package retest * @subpackage dmTestTag * @author Your name here * @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ */ class dmTestTagGeneratorHelper extends BaseDmTestTagGeneratorHelper { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/DmTestTagAdminExport.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestTag/lib/DmTestTagAdminExport.class.php
<?php /** * dmTestTag admin export * * @package retest * @subpackage dmTestTag * @author Your name here */ class DmTestTagAdminExport extends myDoctrineTableExport { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestFruit/actions/actions.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestFruit/actions/actions.class.php
<?php require_once dirname(__FILE__).'/../lib/dmTestFruitGeneratorConfiguration.class.php'; require_once dirname(__FILE__).'/../lib/dmTestFruitGeneratorHelper.class.php'; /** * dmTestFruit actions. * * @package retest * @subpackage dmTestFruit * @author Your name here * @version SVN: $Id: actions.clas...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/test/project/apps/admin/modules/dmTestFruit/lib/dmTestFruitGeneratorConfiguration.class.php
dmCorePlugin/test/project/apps/admin/modules/dmTestFruit/lib/dmTestFruitGeneratorConfiguration.class.php
<?php /** * dmTestFruit module configuration. * * @package retest * @subpackage dmTestFruit * @author Your name here * @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ */ class dmTestFruitGeneratorConfiguration extends BaseDmTestFruitGeneratorConfiguration { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false