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/dmAdminPlugin/lib/action/base/dmAdminBaseGeneratedModuleActions.php
dmAdminPlugin/lib/action/base/dmAdminBaseGeneratedModuleActions.php
<?php class dmAdminBaseGeneratedModuleActions extends dmAdminBaseActions { public function preExecute() { parent::preExecute(); $this->configuration = new $this->configurationClass(); $this->configuration->setAction($this); $this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute', array('configu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/i18n/dmAdminI18n.php
dmAdminPlugin/lib/i18n/dmAdminI18n.php
<?php class dmAdminI18n extends dmI18n { /** * Search first in dm catalogue, then in requested catalogue and finally in messages catalogue * * @todo rethink the order of catalogues. dm catalogue is for dm strings. * given $catalogue is when developer writes code himself (within templates or by call...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/sitemap/dmXmlSitemapGenerator.php
dmAdminPlugin/lib/sitemap/dmXmlSitemapGenerator.php
<?php class dmXmlSitemapGenerator extends dmConfigurable { protected $dispatcher, $filesystem, $i18n; public function __construct(sfEventDispatcher $dispatcher, dmFilesystem $filesystem, dmI18n $i18n, array $options) { $this->dispatcher = $dispatcher; $this->filesystem = $filesystem; $this->...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminHomepageManager.php
dmAdminPlugin/lib/view/html/dmAdminHomepageManager.php
<?php /* * Manage windows to be displayed on admin homepage. * * Allow plugins and project to filter and modify the windows * by listening the dm.admin_homepage.filter_windows event: * --------------------------------------------------------------------- * $this->dispatcher->connect('dm.admin_homepage.filter_win...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminBreadCrumb.php
dmAdminPlugin/lib/view/html/dmAdminBreadCrumb.php
<?php class dmAdminBreadCrumb { protected $context, $i18n, $helper, $record; public function __construct(dmContext $context, dmI18n $i18n, dmHelper $helper) { $this->context = $context; $this->i18n = $i18n; $this->helper = $helper; $this->initialize(); } protected fu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminToolBarView.php
dmAdminPlugin/lib/view/html/dmAdminToolBarView.php
<?php class dmAdminToolBarView extends dmToolBarView { public function render() { return $this->helper->open('div#dm_tool_bar.clearfix.'.sfConfig::get('dm_toolBar_flavour', 'blue')). $this->renderClearCache(). $this->renderCodeEditor(). $this->renderMenu(). $this->renderCultureSelect(). ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminModelTreeView.php
dmAdminPlugin/lib/view/html/dmAdminModelTreeView.php
<?php class dmAdminModelTreeView extends dmModelTreeView { protected function renderModelLink(myDoctrineRecord $model) { return '<a data-model-id="'.$model->id.'"><ins></ins>'.$model.'</a>'; } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminPageTreeView.php
dmAdminPlugin/lib/view/html/dmAdminPageTreeView.php
<?php class dmAdminPageTreeView extends dmPageTreeView { protected function renderPageLink(array $page) { return '<a data-page-id="'.$page[0].'"><ins></ins>'.$page[5].'</a>'; } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/dmAdminRelatedRecordsView.php
dmAdminPlugin/lib/view/html/dmAdminRelatedRecordsView.php
<?php class dmAdminRelatedRecordsView extends dmConfigurable { protected $moduleManager, $helper, $routing, $i18n, $user, $record, $alias, $module, $foreignModule, $foreignRecords; public function __construct(dmModuleManager $moduleManager, dmHelper $helper, sfRouting $routing, dmI18n $i18n, $...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/layout/dmAdminLayoutHelper.php
dmAdminPlugin/lib/view/html/layout/dmAdminLayoutHelper.php
<?php class dmAdminLayoutHelper extends dmCoreLayoutHelper { public function renderBodyTag($options = array()) { $options = dmString::toArray($options); $options['class'] = array_merge(dmArray::get($options, 'class', array()), array( $this->serviceContainer->getParameter('controller.module').'_'.$t...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/log/dmLogView.php
dmAdminPlugin/lib/view/html/log/dmLogView.php
<?php abstract class dmLogView extends dmConfigurable { protected $log, $i18n, $user, $helper, $dateFormat, $maxEntries = 10, $entries; public function __construct(dmLog $log, dmI18n $i18n, dmCoreUser $user, dmHelper $helper, array $options = array()) { $this->log = $log; $this->i18n = $...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/link/dmAdminLinkTag.php
dmAdminPlugin/lib/view/html/link/dmAdminLinkTag.php
<?php class dmAdminLinkTag extends dmBaseLinkTag { protected $serviceContainer; public function __construct($resource, dmAdminBaseServiceContainer $serviceContainer, array $options) { $this->resource = empty($resource) ? '@homepage' : $resource; $this->serviceContainer = $serviceContainer; ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/view/html/link/dmAdminLinkTagFactory.php
dmAdminPlugin/lib/view/html/link/dmAdminLinkTagFactory.php
<?php class dmAdminLinkTagFactory extends dmBaseLinkTagFactory { public function buildLink($source) { $this->serviceContainer->setParameter('link_tag.source', $source); return $this->serviceContainer->getService('link_tag'); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/config/dmAdminModuleManagerConfigHandler.php
dmAdminPlugin/lib/config/dmAdminModuleManagerConfigHandler.php
<?php require_once(sfConfig::get('dm_core_dir').'/lib/config/dmModuleManagerConfigHandler.php'); class dmAdminModuleManagerConfigHandler extends dmModuleManagerConfigHandler { protected function fixModuleConfig($moduleKey, $moduleConfig, $isInProject) { $moduleOptions = parent::fixModuleConfig($moduleKey, ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/config/dmAdminApplicationConfiguration.php
dmAdminPlugin/lib/config/dmAdminApplicationConfiguration.php
<?php require_once(dm::getDir().'/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> * @version SVN: $Id: sfApp...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/config/dmAdminRoutingConfigHandler.php
dmAdminPlugin/lib/config/dmAdminRoutingConfigHandler.php
<?php class dmAdminRoutingConfigHandler extends sfRoutingConfigHandler { /* * No change from Symfony * Overloaded to make the self::configuration call point to this class */ protected function parse($configFiles) { // parse the yaml $config = self::getConfiguration($configFiles); // col...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/dmVisitChart.php
dmAdminPlugin/lib/chart/dmVisitChart.php
<?php class dmVisitChart extends dmGaChart { protected function draw() { $this->choosePalette('diem'); $this->setColorPalette(1, 140, 140, 200); $this->setColorPalette(0, 140, 200, 140); $dataSet = new dmChartData(); $dataSet->AddPoint($this->data['pageviews'], 'pageviews'); $dataSet-...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/dmLogChart.php
dmAdminPlugin/lib/chart/dmLogChart.php
<?php class dmLogChart extends dmChart { protected $eventsFilter = array( 'clear cache' ); protected function draw() { $this->choosePalette('diem'); $this->setColorPalette(1, 200, 40, 40); $this->setColorPalette(2, 140, 200, 140); $this->setColorPalette(0, 40, 60, 200); $this->setC...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/dmBrowserChart.php
dmAdminPlugin/lib/chart/dmBrowserChart.php
<?php class dmBrowserChart extends dmGaChart { protected function draw() { $dataSet = new dmChartData; $dataSet->AddPoint($this->data['name']['pageviews'], 'namePageviews'); $dataSet->AddPoint($this->data['name']['browser'], 'nameBrowser'); $dataSet->AddPoint($this->data['ieVersion']['pageviews'...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/dmWeekChart.php
dmAdminPlugin/lib/chart/dmWeekChart.php
<?php class dmWeekChart extends dmGaChart { protected function draw() { $this->choosePalette('diem'); $this->setColorPalette(1, 40, 60, 200); $this->setColorPalette(0, 140, 200, 140); $this->setColorPalette(2, 200, 40, 40); $dataSet = new dmChartData; $dataSet->AddPoint($this->data['pa...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/dmContentChart.php
dmAdminPlugin/lib/chart/dmContentChart.php
<?php class dmContentChart extends dmChart { protected $modules; protected function draw() { for($it=0;$it<2;$it++) { $this->Palette = array_merge($this->Palette, $this->Palette); } $dataSet = new dmChartData; foreach($this->getModules() as $moduleKey => $module) { ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/generic/dmChart.php
dmAdminPlugin/lib/chart/generic/dmChart.php
<?php require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/pChart/pChart/pChart.class.php')); abstract class dmChart extends pChart { protected static $colors = array( 'grey1' => array(220, 220, 220), 'grey2' => array(140, 140, 140), 'grey3' => array(80, 80, 80), 'blue' => array(180, ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/generic/dmChartInterface.php
dmAdminPlugin/lib/chart/generic/dmChartInterface.php
<?php interface dmChartInterface { public function getImage(); }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/generic/dmGaChart.php
dmAdminPlugin/lib/chart/generic/dmGaChart.php
<?php abstract class dmGaChart extends dmChart { protected $gapi; protected function initialize(array $options) { try { $this->gapi = $this->serviceContainer->getService('gapi')->authenticate(null, null, dmConfig::get('ga_token')); } catch(dmGapiException $e) { $this->availab...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/chart/generic/dmChartData.php
dmAdminPlugin/lib/chart/generic/dmChartData.php
<?php require_once(dmOs::join(sfConfig::get('dm_core_dir'), 'lib/vendor/pChart/pChart/pData.class.php')); class dmChartData extends pData { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/menu/dmAdminMenu.php
dmAdminPlugin/lib/menu/dmAdminMenu.php
<?php class dmAdminMenu extends dmMenu { public function build() { $this ->name('Admin menu') ->ulClass('ui-helper-reset level0') ->addModules(); $this->serviceContainer->getService('dispatcher')->notify(new sfEvent($this, 'dm.admin.menu', array())); return $this; } protected ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/form/sort/dmAdminSortForm.php
dmAdminPlugin/lib/form/sort/dmAdminSortForm.php
<?php abstract class dmAdminSortForm extends BaseForm { protected $records; protected function configureRecordFields() { foreach($this->getRecords() as $index => $record) { $this->configureRecordField($index, $record); } } protected function configureRecordField($index, $record) {...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/form/sort/dmAdminSortReferersForm.php
dmAdminPlugin/lib/form/sort/dmAdminSortReferersForm.php
<?php class dmAdminSortReferersForm extends dmAdminSortForm { protected $records; public function configure() { $this->customizeQuery(); $this->configureRecordFields(); } protected function customizeQuery() { $relation = $this->getRelation(); if (!$relation) { th...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/form/sort/dmAdminSortTableForm.php
dmAdminPlugin/lib/form/sort/dmAdminSortTableForm.php
<?php class dmAdminSortTableForm extends dmAdminSortForm { protected $records; public function configure() { $this->configureRecordFields(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/log/dmEventLogViewLittle.php
dmAdminPlugin/lib/log/dmEventLogViewLittle.php
<?php require_once(realpath(dirname(__FILE__).'/dmEventLogView.php')); class dmEventLogViewLittle extends dmEventLogView { protected $rows = array( // 'time' => 'renderTime', 'user' => 'renderUserTime', 'action' => 'renderActionAndSubject' ); protected function renderUserTime(dmEventLogE...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/log/dmRequestLogView.php
dmAdminPlugin/lib/log/dmRequestLogView.php
<?php class dmRequestLogView extends dmLogView { protected $rows = array( 'time' => 'renderTime', 'user' => 'renderUser', 'browser' => 'renderBrowser', 'location' => 'renderLocation', 'app' => 'renderApp' ); /* * Row renderers */ protected function renderUser(dmR...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/log/dmRequestLogViewLittle.php
dmAdminPlugin/lib/log/dmRequestLogViewLittle.php
<?php require_once(realpath(dirname(__FILE__).'/dmRequestLogView.php')); class dmRequestLogViewLittle extends dmRequestLogView { protected $rows = array( 'user' => 'renderUserAndBrowser', 'location' => 'renderLocation', ); protected function renderUserAndBrowser(dmRequestLogEntry $entry) { ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/log/dmEventLogView.php
dmAdminPlugin/lib/log/dmEventLogView.php
<?php class dmEventLogView extends dmLogView { protected $rows = array( 'time' => 'renderTime', 'user' => 'renderUser', 'action' => 'renderAction', 'type' => 'renderType', 'subject' => 'renderSubject' ); /* * Row renderers */ protected function renderUser(dmEventLo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/response/asset/dmAdminAssetConfig.php
dmAdminPlugin/lib/response/asset/dmAdminAssetConfig.php
<?php class dmAdminAssetConfig extends dmAssetConfig { protected function _getStylesheets() { return array( 'lib.reset', sfConfig::get('sf_web_debug') ? 'lib.symfony_debug' : null, 'lib.ui', 'lib.tipsy', 'core.tool', 'core.editMode', 'core.sprites', 'core.sprite1...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/request/dmAdminRequest.php
dmAdminPlugin/lib/request/dmAdminRequest.php
<?php class dmAdminRequest extends dmRequest { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/lib/debug/dmAdminWebDebug.php
dmAdminPlugin/lib/debug/dmAdminWebDebug.php
<?php class dmAdminWebDebug 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/dmAdminPlugin/lib/codeEditor/dmAdminCodeEditor.php
dmAdminPlugin/lib/codeEditor/dmAdminCodeEditor.php
<?php /** * Performs file operations on the project */ class dmAdminCodeEditor extends dmConfigurable { protected $filesystem, $mimeTypeResolver, $fileBackup; public function __construct(dmFilesystem $filesystem, dmMimeTypeResolver $mimeTypeResolver, dmFileBackup $fileBackup, array $options = array()) {...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/config/dmAdminPluginConfiguration.class.php
dmAdminPlugin/config/dmAdminPluginConfiguration.class.php
<?php class dmAdminPluginConfiguration extends sfPluginConfiguration { protected static $helpers = array('Dm'), $externalModules = array('dmUserAdmin', 'dmPermissionAdmin', 'dmGroupAdmin', 'dmRecordPermissionAdmin', 'dmRecordPermissionAssociationAdmin'); public function configure() { sfConfig::set('dm_ad...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filtersConfiguration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filtersConfiguration.php
public function getFilterForm($filters) { $class = $this->getFilterFormClass(); return new $class($filters, $this->getFilterFormOptions()); }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/processFormAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/processFormAction.php
protected function processForm(sfWebRequest $request, sfForm $form) { $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName())); if ($form->isValid()) { $notice = $form->getObject()->isNew() ? 'The item was created successfully.' : 'The item was updated successful...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filterAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filterAction.php
public function executeFilter(sfWebRequest $request) { $this->setPage(1); if ($request->hasParameter('_reset')) { $this->setFilters($this->configuration->getFilterDefaults()); $this->redirect('@<?php echo $this->getUrlForAction('list') ?>'); } $this->filters = $this->configuration...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/fieldsConfiguration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/fieldsConfiguration.php
public function getPrimaryKeys() { return <?php echo $this->asPhp($this->table->getPrimaryKeys());?>; } public function getListParams() { return <?php echo $this->asPhp(isset($this->config['list']['params']) ? $this->config['list']['params'] : '%%'.implode('%% - %%', isset($this->config['list']['di...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/exportAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/exportAction.php
public function executeExport(sfWebRequest $request) { $this->doExport(array( 'format' => $request->getParameter('format', 'csv'), 'extension' => $request->getParameter('extension', 'csv'), 'encoding' => $request->getParameter('encoding', 'utf-8'), 'exportClass' => '<?php echo $this->get...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/actionsConfiguration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/actionsConfiguration.php
public function getCredentials($action) { if (0 === strpos($action, '_')) { $action = substr($action, 1); } return isset($this->configuration['credentials'][$action]) ? $this->configuration['credentials'][$action] : array(); } public function getActionsDefault() { return <?php echo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/newAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/newAction.php
public function executeNew(sfWebRequest $request) { $this->form = $this->configuration->getForm(); foreach($request->getParameter('defaults', array()) as $key => $value) { $this->form->setDefault($key, $value); } $this-><?php echo $this->getSingularName() ?> = $this->form->getObject(...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/configuration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/configuration.php
[?php /** * <?php echo $this->getModuleName() ?> module configuration. * * @package ##PROJECT_NAME## * @subpackage <?php echo $this->getModuleName()."\n" ?> * @author ##AUTHOR_NAME## * @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ */ abstract class Base<?php echo ucfirst($th...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/sortingConfiguration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/sortingConfiguration.php
public function getDefaultSort() { <?php if ($sort = (isset($this->config['list']['sort']) ? $this->config['list']['sort'] : false)): ?> <?php if (!is_array($sort)) $sort = array($sort, 'asc'); ?> return array('<?php echo $sort[0] ?>', '<?php echo isset($sort[1]) ? $sort[1] : 'asc' ?>'); <?php else: ?> retu...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filtersAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/filtersAction.php
protected function getFilters() { return $this->getUser()->getAttribute('<?php echo $this->getModuleName() ?>.filters', $this->configuration->getFilterDefaults(), 'admin_module'); } protected function setFilters(array $filters) { return $this->getUser()->setAttribute('<?php echo $this->getModuleName(...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/deleteAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/deleteAction.php
public function executeDelete(sfWebRequest $request) { $record = $this->getObjectOrForward404($request); $this->dispatcher->notify(new sfEvent($this, 'admin.delete_object', array('object' => $record))); $record->delete(); $this->getUser()->setFlash('notice', 'The item was deleted successful...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/createAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/createAction.php
public function executeCreate(sfWebRequest $request) { $this->form = $this->configuration->getForm(); $this-><?php echo $this->getSingularName() ?> = $this->form->getObject(); $this->processForm($request, $this->form); $this->nearRecords = null; $this->setTemplate('new'); }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/updateAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/updateAction.php
public function executeUpdate(sfWebRequest $request) { $this-><?php echo $this->getSingularName() ?> = $this->getObjectOrForward404($request); $this->dispatcher->notify(new sfEvent($this, 'admin.edit_object', array('object' => $this-><?php echo $this->getSingularName() ?>))); $this->form = $this...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/paginationConfiguration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/paginationConfiguration.php
public function getPager($model) { $class = $this->getPagerClass(); return new $class($model, $this->getPagerMaxPerPage()); } public function getPagerClass() { return '<?php echo isset($this->config['list']['pager_class']) ? $this->config['list']['pager_class'] : 'dmDoctrinePager' ?>'; <?php uns...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/indexAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/indexAction.php
public function executeIndex(sfWebRequest $request) { // searching if ($request->hasParameter('search')) { $this->setSearch($request->getParameter('search')); $request->setParameter('page', 1); } // sorting if ($request->getParameter('sort') && $this->isValidSortColumn($requ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/paginationAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/paginationAction.php
/** * @return dmDoctrinePager */ public function getPager() { if(null == $this->pager) { $this->pager = $this->configuration->getPager('<?php echo $this->getModelClass() ?>'); $this->pager->setQuery($this->buildQuery()); $this->pager->setPage($this->getPage()); $this->pager->init(); ...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/editAction.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/parts/editAction.php
public function executeEdit(sfWebRequest $request) { $this-><?php echo $this->getSingularName() ?> = $this->getObjectOrForward404($request); $this->dispatcher->notify(new sfEvent($this, 'admin.edit_object', array('object' => $this-><?php echo $this->getSingularName() ?>))); $this->form = $this->...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/actions/actions.class.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/actions/actions.class.php
[?php require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorConfiguration.class.php'); require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorHelper.class.php'); /** * <?php echo $this->getModuleName() ?> actions. * * @package ##PROJEC...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/editSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/editSuccess.php
[?php use_helper('Date'); use_stylesheet('admin.filter'); use_stylesheet('admin.form'); use_javascript('admin.form'); slot('dm.mini_search_form'); include_partial('<?php echo $this->getModuleName() ?>/search'); end_slot(); ?]<div id="sf_admin_container"> [?php if ($form->hasErrors()): ?] <ul class="dm...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/newSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/newSuccess.php
[?php use_helper('Date'); use_stylesheet('admin.filter'); use_stylesheet('admin.form'); use_javascript('admin.form'); slot('dm.mini_search_form'); include_partial('<?php echo $this->getModuleName() ?>/search'); end_slot(); ?] <div id="sf_admin_container"> <div id="sf_admin_header"> [?php include_...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_pagination.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_pagination.php
<div class="dm_form_pagination"> [?php if ($nearRecords) { if ($previousRecord = $nearRecords['prev']) { echo _link($helper->getRouteArrayForAction('edit', $previousRecord))->text('')->title($previousRecord)->set('.previous.s16block.s16_previous'); } else { echo _tag('span.disabled...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_action_bar_embedded.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_action_bar_embedded.php
<?php $saveParams = dmArray::get($this->configuration->getValue('edit.actions'), '_save'); ?> <ul> [?php echo $helper->linkToSave($form->getObject(), <?php echo $this->asPhp($saveParams) ?>); ?] <li class="ml10"><input type="submit" value="[?php echo __('Close') ?]" onclick="parent.document.getElementById('cboxClose')....
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form.php
[?php use_stylesheets_for_form($form) ?] [?php use_javascripts_for_form($form) ?] <div class="sf_admin_form"> <div class="dm_active_locks"></div> [?php $formActions = get_partial('<?php echo $this->getModuleName() ?>/form_action_bar'.(sfConfig::get('dm_admin_embedded') ? '_embedded' : ''), array('<?php echo $thi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list.php
<div class="sf_admin_list"> [?php if (!$pager->getNbResults()): ?] <h2>[?php echo __('No result') ?]</h2> [?php else: ?] <table> <thead> <tr> <?php if ($this->configuration->getValue('list.batch_actions')): ?> <th><input class="sf_admin_list_batch_checkbox" type="checkbox" /></th> <?...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_footer.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_footer.php
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_filters.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_filters.php
[?php use_stylesheets_for_form($form) ?] [?php use_javascripts_for_form($form) ?] <div class="sf_admin_filter"> [?php echo _tag('p.title', __('Advanced search', array(), 'dm')) ?] [?php if ($form->hasGlobalErrors()): ?] [?php echo $form->renderGlobalErrors() ?] [?php endif; ?] <form action="[?php echo...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_action_bar.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_action_bar.php
[?php // BATCH ACTIONS ?] [?php include_partial('<?php echo $this->getModuleName() ?>/list_batch_actions', array('helper' => $helper)) ?] [?php // LIENS ?] [?php include_partial('<?php echo $this->getModuleName() ?>/list_actions', array('helper' => $helper, 'configuration' => $configuration, 'pager' => $pager)) ?...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_footer.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_footer.php
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/historySuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/historySuccess.php
[?php include_partial('dmAdminGenerator/history', array('record' => $object, 'revisions' => $revisions));
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_td_tabular.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_td_tabular.php
<?php foreach ($this->configuration->getValue('list.display') as $name => $field): ?> <?php echo $this->addCredentialCondition(sprintf(<<<EOF <td class="sf_admin_%s sf_admin_list_td_%s"> [?php echo %s ?] </td> EOF , strtolower($field->getType()), $name, $this->renderField($field)), $field->getConfig()) ?> <?php endf...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_batch_actions.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_batch_actions.php
<?php if ($listActions = $this->configuration->getValue('list.batch_actions')) { echo '<div class="sf_admin_actions">'; foreach ((array) $listActions as $action => $params) { echo $this->addCredentialCondition('<input class="dm_js_confirm" title="[?php echo __(\''.$params['label'].'\', array(), \'' . $thi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_header.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_header.php
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortTreeSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortTreeSuccess.php
[?php include_partial('dmAdminGenerator/sortTree', array('tree' => $tree, 'dm_module' => $dm_module));
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_th_tabular.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_th_tabular.php
<?php foreach ($this->configuration->getValue('list.display') as $name => $field): ?> [?php ob_start(); ?] <th class="sf_admin_<?php echo strtolower($field->getType()) ?> sf_admin_list_th_<?php echo $name ?>"> <?php if ($field->isReal()): ?> [?php $translatedLabel = __('<?php echo $field->getConfig('label', '', tru...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_filters_field.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_filters_field.php
[?php if ($field->isPartial()): ?] [?php include_partial('<?php echo $this->getModuleName() ?>/'.$name, array('type' => 'filter', 'form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes)) ?] [?php elseif ($field->isComponent()): ?] [?php include_component('...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_actions.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_actions.php
<ul class="sf_admin_actions clearfix"> <?php foreach (array('new', 'edit') as $action): ?> <?php if ('new' == $action): ?> [?php if ($form->isNew()): ?] <?php else: ?> [?php else: ?] <?php endif; ?> <?php foreach ($this->configuration->getValue($action.'.actions') as $name => $params): ?> <?php if ('_delete' == $name):...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_actions.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_actions.php
[?php if ($configuration->getSortable()): ?] <div class="sf_admin_action sf_admin_action_sort"> <?php if ($this->getModule()->getTable()->isSortable()) echo $this->getLinkToAction('sort', array('action' => 'sortTable', 'params' => array('class' => 'dm_sort s16 s16_sort')), false); ?> <?php if ($this->getModule()->g...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_field.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_field.php
[?php $required = ($validator = $form->getValidatorSchema()->offsetGet($name)) ? $validator->getOption('required') : false; // embedded media forms are required if their file field is required $required && $form[$name] instanceof sfFormFieldSchema && ($formValidator = $form->getValidatorSchema()->offsetGet($nam...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/paginateRelationSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/paginateRelationSuccess.php
[?php include_partial('<?php echo $this->getModuleName()?>/form_field', array('field'=>$field, 'form' => $form, 'name' => $name));
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_search.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_search.php
<div class="dm_module_search"> <a class="dm_open_filter_box ui-corner-all s16 s16_gear" title="[?php echo __('Advanced search', array(), 'dm'); ?]"> [?php $nbAppliedFilters = count($sf_user->getAppliedFiltersOnModule('<?php echo $this->getModuleName(); ?>')); echo $nbAppliedFilters ? $nbAppliedFilt...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/indexSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/indexSuccess.php
[?php use_helper('Date'); use_stylesheet('admin.filter'); use_stylesheet('admin.list'); slot('dm.mini_search_form'); include_partial('<?php echo $this->getModuleName() ?>/search'); end_slot(); ?] <div id="sf_admin_container" class='{baseUrl: "[?php echo url_for1('<?php echo $this->getUrlForAction('list...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortTableSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortTableSuccess.php
[?php include_partial('dmAdminGenerator/sort', array('form' => $form));
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_field_pagination.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_field_pagination.php
[?php $alias = dmString::camelize(substr($field, 0, strlen($field)-5)); ?] <div class="dm_form_pagination {field: '[?php echo $field?]', link: '[?php echo $link?]', selection: [[?php echo ($form->getDefault($field)) ? implode(',',$form->getDefault($field)) : ''; ?] ], currentPage: [?php echo $pager->getPage()?], lastP...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_fieldset.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_fieldset.php
[?php $it = 0; $totalFields = count($fields); ?] <fieldset id="sf_fieldset_[?php echo preg_replace('/[^a-z0-9_]+/', '_', dmString::transliterate(strtolower($fieldset))) ?]" [?php if ($totalFields==1):?] class="single" [?php endif; ?]> [?php if ('NONE' != $fieldset): ?] <h2 class="fieldset_title ui-accordion-heade...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_td_actions.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_td_actions.php
<?php if($this->configuration->getValue('list.object_actions')):?> <td> <ul class="sf_admin_td_actions"> <?php foreach ($this->configuration->getValue('list.object_actions') as $name => $params): ?> <?php if ('_delete' == $name): ?> [?php if($security_manager->userHasCredentials('delete', $<?php echo $this->getSi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_action_bar.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_action_bar.php
[?php //PAGINATION ?] [?php include_partial('<?php echo $this->getModuleName() ?>/form_actions', array('form' => $form, 'helper' => $helper, '<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] [?php include_partial('<?php echo $this->getModuleName() ?>/form_pagination', array('hel...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_pagination.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_list_pagination.php
<div class="dm_form_pagination"> [?php if ($pager->getPage() > 1): ?] [?php if ($pager->getPage() > 2): ?] <a title="[?php echo __('First page'); ?]" href="[?php echo url_for1('<?php echo $this->getUrlForAction('list') ?>') ?]?page=1"> <span class="s16block s16_first">&lt;&lt;</span> </a> [?php else: ?] <d...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortReferersSuccess.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/sortReferersSuccess.php
[?php include_partial('dmAdminGenerator/sortReferers', array('form' => $form));
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_header.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/templates/_form_header.php
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/lib/helper.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/template/lib/helper.php
[?php /** * <?php echo $this->getModuleName() ?> module configuration. * * @package ##PROJECT_NAME## * @subpackage <?php echo $this->getModuleName()."\n" ?> * @author ##AUTHOR_NAME## * @version SVN: $Id: helper.php 12482 2008-10-31 11:13:22Z fabien $ */ abstract class Base<?php echo ucfirst($this->get...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/actions/actions.class.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/actions/actions.class.php
<?php require_once dirname(__FILE__).'/../lib/##MODULE_NAME##GeneratorConfiguration.class.php'; require_once dirname(__FILE__).'/../lib/##MODULE_NAME##GeneratorHelper.class.php'; /** * ##MODULE_NAME## actions. * * @package ##PROJECT_NAME## * @subpackage ##MODULE_NAME## * @author ##AUTHOR_NAME## * @versio...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/export.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/export.php
<?php /** * ##MODULE_NAME## admin export * * @package ##PROJECT_NAME## * @subpackage ##MODULE_NAME## * @author ##AUTHOR_NAME## */ class ##MODEL_CLASS##AdminExport extends myDoctrineTableExport { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/configuration.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/configuration.php
<?php /** * ##MODULE_NAME## module configuration. * * @package ##PROJECT_NAME## * @subpackage ##MODULE_NAME## * @author ##AUTHOR_NAME## * @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ */ class ##MODULE_NAME##GeneratorConfiguration extends Base##UC_MODULE_NAME##GeneratorConfi...
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/helper.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/helper.php
<?php /** * ##MODULE_NAME## module helper. * * @package ##PROJECT_NAME## * @subpackage ##MODULE_NAME## * @author ##AUTHOR_NAME## * @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ */ class ##MODULE_NAME##GeneratorHelper extends Base##UC_MODULE_NAME##GeneratorHelper { }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
diem-project/diem
https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/form.php
dmAdminPlugin/data/generator/dmAdminDoctrineModule/dmAdmin/skeleton/lib/form.php
<?php /** * ##MODULE_NAME## admin form * * @package ##PROJECT_NAME## * @subpackage ##MODULE_NAME## * @author ##AUTHOR_NAME## */ class ##MODEL_CLASS##AdminForm extends Base##MODEL_CLASS##Form { public function configure() { parent::configure(); } }
php
MIT
116974edfb9a5b8bd69cb13586dc62bcdbb485ad
2026-01-05T03:16:57.015672Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/ResourceWatcher.php
src/Lurker/ResourceWatcher.php
<?php namespace Lurker; use Lurker\Event\FilesystemEvent; use Lurker\Exception\InvalidArgumentException; use Lurker\Resource\DirectoryResource; use Lurker\Resource\FileResource; use Lurker\Resource\ResourceInterface; use Lurker\Resource\TrackedResource; use Lurker\Tracker\InotifyTracker; use Lurker\Tracker\RecursiveI...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Event/FilesystemEvent.php
src/Lurker/Event/FilesystemEvent.php
<?php namespace Lurker\Event; use Lurker\Resource\TrackedResource; use Lurker\Exception\InvalidArgumentException; use Lurker\Resource\ResourceInterface; use Lurker\Resource\FileResource; use Lurker\Resource\DirectoryResource; use Symfony\Component\EventDispatcher\Event; /** * Resource change event. * * @author Ko...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Resource/FileResource.php
src/Lurker/Resource/FileResource.php
<?php namespace Lurker\Resource; use Symfony\Component\Config\Resource\FileResource as BaseFileResource; /** * @package Lurker */ class FileResource extends BaseFileResource implements ResourceInterface { public function getModificationTime() { if (!$this->exists()) { return -1; ...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Resource/TrackedResource.php
src/Lurker/Resource/TrackedResource.php
<?php namespace Lurker\Resource; use Lurker\Exception\InvalidArgumentException; /** * Wraps usual resource with tracker information. * * @author Konstantin Kudryashov <ever.zet@gmail.com> */ class TrackedResource { private $trackingId; private $resource; /** * Initializes tracked resource. ...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Resource/DirectoryResource.php
src/Lurker/Resource/DirectoryResource.php
<?php namespace Lurker\Resource; use Symfony\Component\Config\Resource\DirectoryResource as BaseDirectoryResource; /** * @package Lurker */ class DirectoryResource extends BaseDirectoryResource implements ResourceInterface { public function exists() { clearstatcache(true, $resource = $this->getRes...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Resource/ResourceInterface.php
src/Lurker/Resource/ResourceInterface.php
<?php namespace Lurker\Resource; use Symfony\Component\Config\Resource\ResourceInterface as BaseResourceInterface; /** * @package Lurker */ interface ResourceInterface extends BaseResourceInterface { /** * @return boolean */ public function exists(); /** * @return integer */ pu...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false
flint/Lurker
https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Tracker/RecursiveIteratorTracker.php
src/Lurker/Tracker/RecursiveIteratorTracker.php
<?php namespace Lurker\Tracker; use Lurker\Resource\DirectoryResource; use Lurker\Event\FilesystemEvent; use Lurker\Resource\TrackedResource; use Lurker\StateChecker\DirectoryStateChecker; use Lurker\StateChecker\FileStateChecker; /** * Recursive iterator resources tracker. * * @author Konstantin Kudryashov <ever...
php
MIT
712d3ef19bef161daa2ba0e0237c6b875587a089
2026-01-05T03:17:31.633788Z
false