repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/vendor/gapi/gapi.class.php | dmCorePlugin/lib/vendor/gapi/gapi.class.php | <?php
/**
* GAPI - Google Analytics PHP Interface
*
* http://code.google.com/p/gapi-google-analytics-php-interface/
*
* @copyright Stig Manning 2009
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Soft... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/vendor/pChart/pChart/pData.class.php | dmCorePlugin/lib/vendor/pChart/pChart/pData.class.php | <?php
/*
pData - Simplifying data population for pChart
Copyright (C) 2008 Jean-Damien POGOLOTTI
Version 1.13 last updated on 08/17/08
http://pchart.sourceforge.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/vendor/pChart/pChart/pCache.class.php | dmCorePlugin/lib/vendor/pChart/pChart/pCache.class.php | <?php
/*
pCache - Faster renderding using data cache
Copyright (C) 2008 Jean-Damien POGOLOTTI
Version 1.1.2 last updated on 06/17/08
http://pchart.sourceforge.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/vendor/pChart/pChart/pChart.class.php | dmCorePlugin/lib/vendor/pChart/pChart/pChart.class.php | <?php
/*
pChart - a PHP class to build charts!
Copyright (C) 2008 Jean-Damien POGOLOTTI
Version 1.27d last updated on 09/30/08
http://pchart.sourceforge.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | true |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/mail/dmMail.php | dmCorePlugin/lib/mail/dmMail.php | <?php
class dmMail
{
protected
$mailer,
$dispatcher,
$message,
$template,
$values,
$isRendered;
public function __construct(sfContext $context, sfEventDispatcher $dispatcher)
{
$this->mailer = $context->getMailer();
$this->dispatcher = $dispatcher;
$this->initialize();
}
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/mail/dmMailException.php | dmCorePlugin/lib/mail/dmMailException.php | <?php
class dmMailException extends dmException
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/user/dmCoreUser.php | dmCorePlugin/lib/user/dmCoreUser.php | <?php
abstract class dmCoreUser extends dmSecurityUser implements dmMicroCacheInterface
{
protected
$browser,
$cache = array();
public function connect()
{
$this->dispatcher->connect('dm.context.loaded', array($this, 'listenToContextLoadedEvent'));
}
public function listenToContextLoadedEvent(s... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/dmCacheManager.php | dmCorePlugin/lib/cache/dmCacheManager.php | <?php
class dmCacheManager extends dmConfigurable
{
protected
$dispatcher,
$caches;
public function __construct(sfEventDispatcher $dispatcher, array $options = array())
{
$this->dispatcher = $dispatcher;
$this->initialize($options);
}
public function initialize(array $options)
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/dmCacheCleaner.php | dmCorePlugin/lib/cache/dmCacheCleaner.php | <?php
class dmCacheCleaner extends dmConfigurable
{
protected
$cacheManager,
$dispatcher,
$queue;
const
TEMPLATE = 'template';
public function __construct(dmCacheManager $cacheManager, sfEventDispatcher $dispatcher, array $options = array())
{
$this->cacheManager = $cacheManager;
$this->d... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/micro/dmMicroCache.php | dmCorePlugin/lib/cache/micro/dmMicroCache.php | <?php
abstract class dmMicroCache
{
protected $cache = array();
protected function getCache($key)
{
if(isset($this->cache[$key]))
{
return $this->cache[$key];
}
return null;
}
protected function hasCache($key)
{
return isset($this->cache[$key]);
}
protected function setCac... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/micro/dmMicroCacheInterface.php | dmCorePlugin/lib/cache/micro/dmMicroCacheInterface.php | <?php
interface dmMicroCacheInterface
{
public function getCache($key);
public function setCache($key, $value);
public function clearCache($key = null);
public function hasCache($key);
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/driver/dmFileCache.class.php | dmCorePlugin/lib/cache/driver/dmFileCache.class.php | <?php
class dmFileCache extends sfFileCache
{
public function initialize($options = array())
{
if (!isset($options['cache_dir']) && isset($options['prefix']))
{
$options['cache_dir'] = dmOs::join(sfConfig::get("sf_cache_dir"), $options['prefix']);
}
return parent::initialize($options);
}
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/driver/dmMetaCache.php | dmCorePlugin/lib/cache/driver/dmMetaCache.php | <?php
class dmMetaCache extends sfCache
{
protected
$cache;
public function initialize($options = array())
{
$cacheClass = $this->getCurrentCacheClass();
$this->cache = new $cacheClass($options);
}
public function getCurrentCacheClass()
{
return dmAPCCache::isEnabled() ? 'dmAPCCach... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/cache/driver/dmAPCCache.class.php | dmCorePlugin/lib/cache/driver/dmAPCCache.class.php | <?php
class dmAPCCache extends sfAPCCache
{
protected static
$isApcEnabled;
public function __construct($options = array())
{
if (isset($options['cache_dir']))
{
$name = substr($options['cache_dir'], strlen(sfConfig::get('sf_cache_dir'))+1);
}
elseif(isset($options['prefix']))
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmLockTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmLockTable.class.php | <?php
/**
*/
class PluginDmLockTable extends myDoctrineTable
{
/**
* @return array usernames of current active users on the same page
*/
public function getLocks(array $data)
{
$locks = dmDb::pdo(
sprintf(
'SELECT DISTINCT a.user_name FROM %s a WHERE a.user_id != ? AND a.module = ? AND a... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmArea.class.php | dmCorePlugin/lib/model/doctrine/PluginDmArea.class.php | <?php
/**
* PluginDmArea
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmArea extends BaseDmArea
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmZone.class.php | dmCorePlugin/lib/model/doctrine/PluginDmZone.class.php | <?php
/**
* PluginDmZone
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmZone extends BaseDmZone
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmRedirect.class.php | dmCorePlugin/lib/model/doctrine/PluginDmRedirect.class.php | <?php
/**
* PluginDmRedirect
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmRedirect extends BaseD... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmAreaTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmAreaTable.class.php | <?php
/**
*/
class PluginDmAreaTable extends myDoctrineTable
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmAutoSeo.class.php | dmCorePlugin/lib/model/doctrine/PluginDmAutoSeo.class.php | <?php
/**
* PluginDmAutoSeo
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmAutoSeo extends BaseDmAut... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmSentMailTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmSentMailTable.class.php | <?php
/**
*/
class PluginDmSentMailTable extends myDoctrineTable
{
/**
* Creates a DmSentMail from a Swift_Message
* @param Swift_Message $message
* @return DmSentMail
*/
public function createFromSwiftMessage(Swift_Message $message)
{
$debug = $message->toString();
if($attachementPosition ... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmTransUnit.class.php | dmCorePlugin/lib/model/doctrine/PluginDmTransUnit.class.php | <?php
/**
* PluginDmTransUnit
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 6716 2009-11-12 19:26:28Z jwage $
*/
abstract class PluginDmTransUnit extends Bas... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMediaFolderTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMediaFolderTable.class.php | <?php
/**
*/
class PluginDmMediaFolderTable extends myDoctrineTable
{
public function checkRoot()
{
if (!$root = $this->getTree()->fetchRoot())
{
$root = $this->create(array(
'name' => 'Root',
'rel_path' => ''
))->saveGet();
$this->getTree()->createRoot($root);
}
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMedia.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMedia.class.php | <?php
abstract class PluginDmMedia extends BaseDmMedia
{
protected
$isRefreshed = false;
public function getTimeHash()
{
return $this->checkFileExists() ? substr(md5(filemtime($this->getFullPath())), -5) : null;
}
/**
* Store a copy of the file in backup folder
*/
public function backup()
{... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmSetting.class.php | dmCorePlugin/lib/model/doctrine/PluginDmSetting.class.php | <?php
/**
* PluginDmSetting
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5925 2009-06-22 21:27:17Z jwage $
*/
abstract class PluginDmSetting extends BaseDmS... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmPageTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmPageTable.class.php | <?php
/**
*/
class PluginDmPageTable extends myDoctrineTable
{
protected
$recordPageCache = array(),
$findByStringCache = array();
/**
* Check that basic pages exist
* ( main/root, main/error404, main/signin )
* and, if they don't, will create them
*/
public function checkBasicPages()
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmLayoutTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmLayoutTable.class.php | <?php
/**
*/
class PluginDmLayoutTable extends myDoctrineTable
{
protected
$firstLayout;
public function findFirstOrCreate()
{
if (null === $this->firstLayout || !$this->firstLayout->exists())
{
if (!$this->firstLayout = $this->createQuery()->fetchRecord())
{
$this->firstLayout = d... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmWidgetTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmWidgetTable.class.php | <?php
/**
*/
class PluginDmWidgetTable extends myDoctrineTable
{
public function createInZone(DmZone $zone, $moduleAction, $values = array())
{
list($module, $action) = explode('/', $moduleAction);
$widget = $this->create(array(
'dm_zone_id' => $zone->get('id'),
'module' => $module,
'ac... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmError.class.php | dmCorePlugin/lib/model/doctrine/PluginDmError.class.php | <?php
/**
* PluginDmError
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmError extends BaseDmError... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmTransUnitTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmTransUnitTable.class.php | <?php
/**
*/
class PluginDmTransUnitTable extends myDoctrineTable
{
public function getIdentifierColumnName()
{
return 'source';
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmWidget.class.php | dmCorePlugin/lib/model/doctrine/PluginDmWidget.class.php | <?php
/**
* PluginDmWidget
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmWidget extends BaseDmWidge... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmAutoSeoTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmAutoSeoTable.class.php | <?php
/**
*/
class PluginDmAutoSeoTable extends myDoctrineTable
{
public function findActives($culture = null)
{
return $this->createQuery('a')
->whereIn('a.module', array_keys($this->getModuleManager()->getModulesWithPage()))
->withI18n($culture)
->fetchRecords();
}
/**
*
* @param... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmPage.class.php | dmCorePlugin/lib/model/doctrine/PluginDmPage.class.php | <?php
/**
* PluginDmPage
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmPage extends BaseDmPage
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmSentMail.class.php | dmCorePlugin/lib/model/doctrine/PluginDmSentMail.class.php | <?php
/**
* PluginDmSentMail
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmSentMail extends BaseD... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmLock.class.php | dmCorePlugin/lib/model/doctrine/PluginDmLock.class.php | <?php
/**
* PluginDmLock
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 7021 2010-01-12 20:39:49Z lsmith $
*/
abstract class PluginDmLock extends BaseDmLock
{... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmRedirectTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmRedirectTable.class.php | <?php
/**
*/
class PluginDmRedirectTable extends myDoctrineTable
{
public function findOneForSlug($slug)
{
$exactRedirection = $this->createQuery('r')
->where('r.source = ?', $slug)
->fetchRecord();
if($exactRedirection)
{
return $exactRedirection;
}
$wildCardRedirections = $th... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMailTemplate.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMailTemplate.class.php | <?php
/**
* PluginDmMailTemplate
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 6670 2009-11-04 19:52:45Z jwage $
*/
abstract class PluginDmMailTemplate exten... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmLayout.class.php | dmCorePlugin/lib/model/doctrine/PluginDmLayout.class.php | <?php
/**
* PluginDmLayout
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmLayout extends BaseDmLayou... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMediaFolder.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMediaFolder.class.php | <?php
abstract class PluginDmMediaFolder extends BaseDmMediaFolder
{
/**
* Getter methods
*/
public function getName()
{
$relPath = $this->get('rel_path');
if(strpos($relPath, '/'))
{
$name = basename($relPath);
}
elseif($relPath)
{
$name = $relPath;
}
else... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmSettingTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmSettingTable.class.php | <?php
/**
*/
class PluginDmSettingTable extends myDoctrineTable
{
public function fetchOneByName($name)
{
return $this->createQuery('r')
->where('r.name = ?', $name)
->fetchRecord();
}
public function getGroupNames()
{
$groups = dmDb::query('DmSetting s')->select('s.group_name')->groupB... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmPageView.class.php | dmCorePlugin/lib/model/doctrine/PluginDmPageView.class.php | <?php
/**
* PluginDmPageView
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
*/
abstract class PluginDmPageView extends BaseDmP... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmCatalogueTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmCatalogueTable.class.php | <?php
/**
*/
class PluginDmCatalogueTable extends myDoctrineTable
{
/**
*
* @param string $source
* @param string $target
* @param string $space
* @return DmCatalogue
*/
public function retrieveBySourceTargetSpace($source, $target, $space)
{
return $this->createQuery('c')
->where('c.source_l... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmZoneTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmZoneTable.class.php | <?php
/**
*/
class PluginDmZoneTable extends myDoctrineTable
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMailTemplateTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMailTemplateTable.class.php | <?php
/**
*/
class PluginDmMailTemplateTable extends myDoctrineTable
{
public function createDefault($name)
{
return $this->create(array(
'name' => $name,
'subject' => 'Default subject',
'from_email' => 'noreply@nomail.com'
));
}
public function findOneByNameWithI18n($name)
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmErrorTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmErrorTable.class.php | <?php
/**
*/
class PluginDmErrorTable extends myDoctrineTable
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmMediaTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmMediaTable.class.php | <?php
/**
*/
class PluginDmMediaTable extends myDoctrineTable
{
public function getIdentifierColumnName()
{
return 'file';
}
/**
* Performance shortcuts
*/
public function findOneByIdWithFolder($id)
{
if ($spacePos = strpos($id, ' '))
{
$id = substr($id, 0, $spacePos);
}
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmPageViewTable.class.php | dmCorePlugin/lib/model/doctrine/PluginDmPageViewTable.class.php | <?php
/**
*/
class PluginDmPageViewTable extends myDoctrineTable
{
public function findOneByModuleAndAction($module, $action)
{
return $this->createQuery('p')
->where('p.module = ? AND p.action = ?', array($module, $action))
->fetchRecord();
}
/**
* @return DmPageView created record
*/
pu... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/model/doctrine/PluginDmCatalogue.class.php | dmCorePlugin/lib/model/doctrine/PluginDmCatalogue.class.php | <?php
/**
* PluginDmCatalogue
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 6716 2009-11-12 19:26:28Z jwage $
*/
abstract class PluginDmCatalogue extends Bas... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/generator/myModelGeneratorConfiguration.class.php | dmCorePlugin/lib/generator/myModelGeneratorConfiguration.class.php | <?php
abstract class myModelGeneratorConfiguration extends dmModelGeneratorConfiguration
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/generator/dmDoctrineFormFilterGenerator.class.php | dmCorePlugin/lib/generator/dmDoctrineFormFilterGenerator.class.php | <?php
class dmDoctrineFormFilterGenerator extends sfDoctrineFormFilterGenerator
{
/**
* Initializes the current sfGenerator instance.
*
* @param sfGeneratorManager $generatorManager A sfGeneratorManager instance
*/
public function initialize(sfGeneratorManager $generatorManager)
{
parent::initialize($gene... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/generator/dmDoctrineFormGenerator.class.php | dmCorePlugin/lib/generator/dmDoctrineFormGenerator.class.php | <?php
class dmDoctrineFormGenerator extends sfDoctrineFormGenerator
{
protected
$moduleManager;
/**
* Initializes the current sfGenerator instance.
*
* @param sfGeneratorManager $generatorManager A sfGeneratorManager instance
*/
public function initialize(sfGeneratorManager $generatorManager)
{
parent... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/generator/admin/dmAdminGeneratorBuilder.php | dmCorePlugin/lib/generator/admin/dmAdminGeneratorBuilder.php | <?php
/**
* Create a generator.yml for an admin module
*/
class dmAdminGeneratorBuilder
{
protected
$module,
$dispatcher,
$table;
public function __construct(dmModule $module, sfEventDispatcher $dispatcher)
{
$this->module = $module;
$this->dispatcher = $dispatcher;
$this->table = $module->g... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/basic/dmLorem.php | dmCorePlugin/lib/basic/dmLorem.php | <?php
class dmLorem
{
protected static
$loremText,
$markdownLoremText;
public static function getMarkdownLorem($nbParagraphs = 1)
{
return str_repeat(self::getMarkdownLoremText(), $nbParagraphs);
}
public static function getBigLorem($nbParagraphs = null)
{
$lorem = self::getLoremText();
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/basic/dmString.php | dmCorePlugin/lib/basic/dmString.php | <?php
class dmString extends sfInflector
{
const ENCODING_SEPARATOR = '__DM_SPLIT__';
protected static
$camelizeCache = array();
public static function escape($text, $quoteStyle = ENT_QUOTES)
{
return htmlspecialchars($text, $quoteStyle, 'UTF-8');
}
/**
* Clean dirty strings
*/
public st... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/basic/dmArray.php | dmCorePlugin/lib/basic/dmArray.php | <?php
class dmArray
{
/**
* Sets each array key to its corresponding value
*
* @param array $array source array
*
* @return array new array
*/
public static function valueToKey(array $array)
{
$tmp = array();
foreach($array as $value)
{
$tmp[$value] = $value;
}
unset($array);
return $tmp... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/action/dmBaseComponents.php | dmCorePlugin/lib/action/dmBaseComponents.php | <?php
class dmBaseComponents extends sfComponents
{
/**
* @return sfEventDispatcher the event dispatcher
*/
public function getDispatcher()
{
return $this->context->getEventDispatcher();
}
/**
* @return dmFrontRouting the routing
*/
public function getRouting()
{
return $this->conte... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/action/dmBaseActions.php | dmCorePlugin/lib/action/dmBaseActions.php | <?php
abstract class dmBaseActions extends sfActions
{
protected function forwardSecureUnless($condition)
{
if (!$condition)
{
return $this->forwardSecure();
}
}
protected function forwardSecure()
{
return $this->forward(sfConfig::get('sf_secure_module'), sfConfig::get('sf_secure_actio... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/exception/dmRecordException.php | dmCorePlugin/lib/exception/dmRecordException.php | <?php
class dmRecordException extends dmException
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/exception/dmThreadException.php | dmCorePlugin/lib/exception/dmThreadException.php | <?php
class dmThreadException extends dmException
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/exception/dmPageMustNotExistException.php | dmCorePlugin/lib/exception/dmPageMustNotExistException.php | <?php
class dmPageMustNotExistException extends dmException
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/exception/dmException.class.php | dmCorePlugin/lib/exception/dmException.class.php | <?php
class dmException extends sfException
{
public function __construct($message = 'diem exception')
{
return parent::__construct(strip_tags($message));
}
/**
* Builds an exception
*
* @param $something Any PHP type
*
* @return dmException An dmException instance that wraps the given som... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/exception/dmHttpErrorException.class.php | dmCorePlugin/lib/exception/dmHttpErrorException.class.php | <?php
class dmHttpErrorException extends dmException
{
protected $httpCode, $params;
public function __construct($msg, $httpCode = 404, $params = array())
{
$this->httpCode = $httpCode;
$this->params = $params;
parent::__construct($msg);
}
/**
* Forwards to the 404 action.
*/
public function prin... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmTestBrowser.php | dmCorePlugin/lib/test/dmTestBrowser.php | <?php
class dmTestBrowser extends sfTestBrowser
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmSfBrowser.php | dmCorePlugin/lib/test/dmSfBrowser.php | <?php
class dmSfBrowser extends sfBrowser
{
/**
* Diem override:
* sfContext is hardcoded in symfony unit tests.
* Replace it with dmContext.
*
* @see sfBrowser
*/
public function getContext($forceReload = false)
{
if (null === $this->context || $forceReload)
{
$isContextEmpty =... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmCoreFunctionalCoverageTest.php | dmCorePlugin/lib/test/dmCoreFunctionalCoverageTest.php | <?php
abstract class dmCoreFunctionalCoverageTest
{
protected
$context,
$options,
$browser,
$stats,
$counter;
protected static $defaults = array(
'env' => 'test',
'debug' => false,
'login' => false,
'maxRedirections' => 5,
'validate' => true
);
public function __construct(a... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmFrontTestFunctional.php | dmCorePlugin/lib/test/dmFrontTestFunctional.php | <?php
class dmFrontTestFunctional extends dmTestFunctional
{
public function getPage()
{
return $this->getContext()->getPage();
}
public function isPageModuleAction($pageModuleAction)
{
if (!$pageModuleAction)
{
return $this;
}
list($module, $action) = explode('/', $pageModuleActi... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmFrontFunctionalCoverageTest.php | dmCorePlugin/lib/test/dmFrontFunctionalCoverageTest.php | <?php
require_once dirname(__FILE__).'/dmCoreFunctionalCoverageTest.php';
class dmFrontFunctionalCoverageTest extends dmCoreFunctionalCoverageTest
{
protected function configure()
{
parent::configure();
if (empty($this->options['app']))
{
$this->options['app'] = 'front';
}
}
protected... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmTestFunctional.php | dmCorePlugin/lib/test/dmTestFunctional.php | <?php
class dmTestFunctional extends sfTestFunctional
{
/**
* Initializes the browser tester instance.
*
* @param sfBrowserBase $browser A sfBrowserBase instance
* @param lime_test $lime A lime instance
*/
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = ... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmTesterResponse.class.php | dmCorePlugin/lib/test/dmTesterResponse.class.php | <?php
/**
* Fix segfaults with PHP 5.3.2
*
* @see sfTesterResponse
*/
class dmTesterResponse extends sfTesterResponse
{
/**
* @see sfTesterResponse::checkElement()
*/
public function checkElement($selector, $value = true, $options = array())
{
if (null === $this->dom)
{
throw new LogicExc... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/test/dmAdminFunctionalCoverageTest.php | dmCorePlugin/lib/test/dmAdminFunctionalCoverageTest.php | <?php
require_once dirname(__FILE__).'/dmCoreFunctionalCoverageTest.php';
class dmAdminFunctionalCoverageTest extends dmCoreFunctionalCoverageTest
{
protected function configure()
{
parent::configure();
if (empty($this->options['app']))
{
$this->options['app'] = 'admin';
}
}
protected... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/thread/dmThreadLauncher.php | dmCorePlugin/lib/thread/dmThreadLauncher.php | <?php
class dmThreadLauncher extends dmConfigurable
{
protected
$filesystem;
public function __construct(dmFilesystem $filesystem, array $options = array())
{
$this->filesystem = $filesystem;
$this->initialize($options);
}
public function execute($threadClass, array $threadOptions = arra... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/thread/dmThread.php | dmCorePlugin/lib/thread/dmThread.php | <?php
abstract class dmThread extends dmConfigurable
{
protected
$configuration,
$options,
$databaseManager,
$moduleManager;
public function __construct(dmProjectConfiguration $configuration, array $options = array())
{
$this->configuration = $configuration;
$this->initialize($options);
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/thread/dmPageSynchronizerThread.php | dmCorePlugin/lib/thread/dmPageSynchronizerThread.php | <?php
class dmPageSynchronizerThread extends dmThread
{
public function doExecute()
{
$pageSynchronizer = new $this->options['class']($this->getModuleManager());
$pageSynchronizer->execute($this->options['modules']);
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/thread/dmSeoSynchronizerThread.php | dmCorePlugin/lib/thread/dmSeoSynchronizerThread.php | <?php
class dmSeoSynchronizerThread extends dmThread
{
public function doExecute()
{
$seoSynchronizer = new $this->options['class']($this->getModuleManager());
foreach($this->options['cultures'] as $culture)
{
$seoSynchronizer->execute($this->options['modules'], $culture);
}
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/thread/test/dmThreadTest.php | dmCorePlugin/lib/thread/test/dmThreadTest.php | <?php
/*
* Used to test the thread launcher
*/
class dmThreadTest extends dmThread
{
public function doExecute()
{
touch(dmOs::join(sfConfig::get('sf_cache_dir'), $this->options['proof_file_name']));
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/i18n/sfMessageSource_dm.php | dmCorePlugin/lib/i18n/sfMessageSource_dm.php | <?php
class sfMessageSource_dm extends sfMessageSource
{
protected
$catalogueTable = 'dm_catalogue',
$transUnitTable = 'dm_trans_unit';
public function __construct()
{
}
/**
* Gets an array of messages for a particular catalogue and cultural variant.
*
* @param string $variant the catal... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/i18n/dmI18nYamlExtractor.php | dmCorePlugin/lib/i18n/dmI18nYamlExtractor.php | <?php
class dmI18nYamlExtractor
{
protected
$i18n,
$configuration,
$dispatcher,
$formatter;
public function __construct(dmI18n $i18n, sfApplicationConfiguration $configuration, sfEventDispatcher $dispatcher)
{
$this->i18n = $i18n;
$this->configuration = $configuration;
$this->disp... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/i18n/dmI18n.php | dmCorePlugin/lib/i18n/dmI18n.php | <?php
class dmI18n extends sfI18N
{
protected
$cultures = array();
public function setCultures(array $cultures)
{
$this->cultures = array_unique($cultures);
}
public function translateArray(array $array, $args = array(), $catalogue = 'messages')
{
foreach($array as $key => $value)
{
... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/i18n/dmMessageFormat.php | dmCorePlugin/lib/i18n/dmMessageFormat.php | <?php
/*
* As Diem only runs on UTF-8,
* let's gain some microseconds
* bypassing utf8 conversions
*/
class dmMessageFormat extends sfMessageFormat
{
/**
* Do string translation.
*
* @param string $string the string to translate.
* @param array $args a list of string to substitute.
* ... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/project/dmFileBackup.php | dmCorePlugin/lib/project/dmFileBackup.php | <?php
class dmFileBackup extends dmConfigurable
{
protected
$dispatcher,
$filesystem;
public function __construct(sfEventDispatcher $dispatcher, dmFilesystem $filesystem, array $options = array())
{
$this->dispatcher = $dispatcher;
$this->filesystem = $filesystem;
$this->initialize($optio... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/project/dmProject.php | dmCorePlugin/lib/project/dmProject.php | <?php
class dmProject
{
protected static
$key,
$hash,
$models,
$allModels,
$dmModels;
/**
* Returns project key based on his dir_name
*/
public static function getKey()
{
if (null === self::$key)
{
self::$key = basename(sfConfig::get('sf_root_dir'));
}
return self::$key... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/seo/dmSeoValidator.php | dmCorePlugin/lib/seo/dmSeoValidator.php | <?php
class dmSeoValidationService extends dmService
{
protected
$attributes;
protected static
$uniqueAttributes = array('slug', 'title', 'description');
public function execute(array $attributes = array('slug'))
{
$timer = dmDebug::timerOrNull('dmSeoValidationService::execute');
$this->attribut... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/seo/dmSeoSynchronizer.php | dmCorePlugin/lib/seo/dmSeoSynchronizer.php | <?php
class dmSeoSynchronizer extends dmMicroCache
{
/*protected static
$truncateCache,
$patternsPlaceholdersCache = array(),
$shouldProcessMarkdownCache = array(),
$moduleIsActivatable = array();*/
protected
$moduleManager,
$culture,
$nodeParentIdStmt,
$currentModule;
public function __constru... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/diff/dmTextDiff.php | dmCorePlugin/lib/diff/dmTextDiff.php | <?php
/*
* Inspired by sfSympalTextDiff
*/
class dmTextDiff
{
public function __construct()
{
@$this->loadVendorLib();
}
public function generateHtml($from, $to)
{
return $this->renderHtml($this->generate($from, $to));
}
public function generate($from, $to)
{
return @new Text_Diff(... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/diff/dmRecordTextDiff.php | dmCorePlugin/lib/diff/dmRecordTextDiff.php | <?php
/*
* Responsible for rendering diffs between two versions of a record
*/
class dmRecordTextDiff extends dmConfigurable
{
protected
$textDiff,
$i18n,
$fromVersion,
$toVersion,
$versionModel,
$table,
$parentTable,
$relatedRecordCache = array();
public function __construct(dmTextDiff $textD... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/session/dmSessionStorage.class.php | dmCorePlugin/lib/session/dmSessionStorage.class.php | <?php
/*
* This file is part of the dmCorePlugin package.
* (c) 2011 Diem project
*
* http://www.diem-project.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
* @see sfSessionStorage
*
*/
class dmSessionStorage e... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/dmHelper.php | dmCorePlugin/lib/view/dmHelper.php | <?php
require_once(sfConfig::get('dm_core_dir').'/lib/vendor/php-html-writer/lib/phpHtmlWriter.php');
class dmHelper extends dmConfigurable
{
protected
$context,
$serviceContainer,
$htmlWriter;
public function __construct(dmContext $context, array $options = array())
{
$this->context = $co... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/image/dmImage.php | dmCorePlugin/lib/view/image/dmImage.php | <?php
class dmImage extends sfImage
{
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/css/dmCssMinifier.php | dmCorePlugin/lib/view/css/dmCssMinifier.php | <?php
class dmCssMinifier
{
// remove comments, tabs, spaces, newlines, etc.
public static function transform($style)
{
return self::minify2($style);
}
protected static function minify1($v)
{
return str_replace(
array("\r\n", "\r", "\n", "\t", ' ', ' ', ' ', ' '),
' ',
preg... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/dmHtmlTag.php | dmCorePlugin/lib/view/html/dmHtmlTag.php | <?php
abstract class dmHtmlTag extends dmConfigurable
{
protected
$attributesToRemove = array(),
$emptyAttributesToRemove = array('class');
abstract public function render();
protected function initialize(array $options = array())
{
$this->configure($options);
}
public function getDefau... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/dmModelTreeView.php | dmCorePlugin/lib/view/html/dmModelTreeView.php | <?php
abstract class dmModelTreeView extends dmConfigurable
{
protected
$options,
$helper,
$culture,
$tree,
$html,
$level,
$lastLevel;
public function __construct(dmHelper $helper, $culture, array $options)
{
$this->helper = $helper;
$this->culture = $culture;
$this->initialize($op... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/dmToolBarView.php | dmCorePlugin/lib/view/html/dmToolBarView.php | <?php
abstract class dmToolBarView
{
protected
$dispatcher,
$user,
$helper,
$i18n,
$container;
public function __construct(sfEventDispatcher $dispatcher, dmCoreUser $user, dmHelper $helper, dmI18n $i18n, sfServiceContainer $container)
{
$this->dispatcher = $dispatcher;
$this->user = $use... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/dmTableTag.php | dmCorePlugin/lib/view/html/dmTableTag.php | <?php
class dmTableTag extends dmHtmlTag
{
protected
$helper,
$head,
$body,
$foot,
$useStrip = false,
$stripCount,
$caption;
public function __construct(dmHelper $helper)
{
$this->helper = $helper;
$this->initialize();
}
public function getDefaultOptions()
{
return array(... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/dmPageTreeView.php | dmCorePlugin/lib/view/html/dmPageTreeView.php | <?php
abstract class dmPageTreeView extends dmConfigurable
{
protected
$helper,
$culture,
$tree,
$html,
$level,
$lastLevel;
public function __construct(dmHelper $helper, $culture, array $options)
{
$this->helper = $helper;
$this->culture = $culture;
$this->tree = $this->getRecordT... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/layout/dmCoreLayoutHelper.php | dmCorePlugin/lib/view/html/layout/dmCoreLayoutHelper.php | <?php
class dmCoreLayoutHelper extends dmConfigurable
{
protected
$dispatcher,
$serviceContainer,
$baseWebPath,
$isHtml4,
$isHtml5;
public function __construct(sfEventDispatcher $dispatcher, dmBaseServiceContainer $serviceContainer, array $options = array())
{
$this->dispatcher = $dispatcher;
$this->serv... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/media/dmMediaResource.php | dmCorePlugin/lib/view/html/media/dmMediaResource.php | <?php
class dmMediaResource
{
protected
$mimeTypeResolver,
$theme,
$culture,
$requestContext,
$source,
$type,
$mime,
$pathFromWebDir,
$remotePath;
const
MEDIA = 'media',
FILE = 'file',
REMOTE = 'remote';
public function __construct(dmMimeTypeResolver $mimeTypeResolver, dmTheme $th... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/media/tag/dmMediaTagAudio.php | dmCorePlugin/lib/view/html/media/tag/dmMediaTagAudio.php | <?php
class dmMediaTagAudio extends dmMediaTag
{
public function render()
{
$tag = '<div'.$this->getHtmlAttributes().'></div>';
return $tag;
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/media/tag/dmMediaTagFlash.php | dmCorePlugin/lib/view/html/media/tag/dmMediaTagFlash.php | <?php
class dmMediaTagFlash extends dmMediaTag
{
public function render()
{
$tag = '<div'.$this->getHtmlAttributes().'></div>';
return $tag;
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/media/tag/dmMediaTag.php | dmCorePlugin/lib/view/html/media/tag/dmMediaTag.php | <?php
abstract class dmMediaTag extends dmHtmlTag
{
protected
$resource,
$context,
$stylesheets = array(),
$javascripts = array();
public function __construct(dmMediaResource $resource, dmContext $context, array $options = array())
{
$this->resource = $resource;
$this->context =... | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
diem-project/diem | https://github.com/diem-project/diem/blob/116974edfb9a5b8bd69cb13586dc62bcdbb485ad/dmCorePlugin/lib/view/html/media/tag/dmMediaTagVideo.php | dmCorePlugin/lib/view/html/media/tag/dmMediaTagVideo.php | <?php
class dmMediaTagVideo extends dmMediaTag
{
public function render()
{
$tag = '<div'.$this->getHtmlAttributes().'></div>';
return $tag;
}
} | php | MIT | 116974edfb9a5b8bd69cb13586dc62bcdbb485ad | 2026-01-05T03:16:57.015672Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.