/** * Overrides the modResource constructor to set the response class and class_key for this Resource type * @param xPDO $xpdo */ function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->_fields['class_key'] = 'modJSONRPCResource'; $this->xpdo->setOption('modResponse.class', 'jsonrpc.modJSONRPCResponse'); $this->showInContextMenu = false; }
/** * Overrides modResource::__construct to set the class key for this Resource type * @param xPDO $xpdo A reference to the xPDO|modX instance */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('type', 'reference'); $this->set('class_key', 'modWebLink'); $this->showInContextMenu = true; }
/** * Override modResource::__construct to ensure a few specific fields are forced to be set. * @param xPDO $xpdo */ function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'Articles'); $this->set('hide_children_in_tree', true); $this->salt = $xpdo->getOption('articles.twitter.salt', null, 'tw1tt3rs4uth4p1ish0rribl3'); }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'Article'); $this->set('show_in_tree', false); $this->set('richtext', true); $this->set('searchable', true); }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); /* require_once MODX_CORE_PATH.'components/modxtalks/model/modxtalks/modxtalks.class.php'; $this->modxtalks = new modxTalks($xpdo); */ $this->set('class_key', 'CommentsModxTalks'); }
/** * @param xPDO $xpdo */ function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'TicketsSection'); $this->set('comments', 0); $this->set('views', 0); $this->set('votes', 0); $this->set('tickets', 0); }
/** * {@inheritdoc} */ function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $fields = $this->xpdo->getFieldMeta('msProductData'); unset($fields['id']); $this->dataFields = array_keys($fields); $aggregates = $this->xpdo->getAggregates('msProductData'); $composites = $this->xpdo->getComposites('msProductData'); $this->dataRelated = array_merge(array_keys($aggregates), array_keys($composites)); }
function __construct(xPDO &$xpdo) { global $modx; parent::__construct($xpdo); $this->set('class_key', 'modTranslatedDocument'); $language = $modx->getOption('cultureKey'); $this->language = $modx->getOption('cultureKey'); $this->_cacheKey = '[contextKey]/resources/' . $language . '/[id]'; $this->_pagetitle = "arse"; }
function __construct(&$xpdo) { parent::__construct($xpdo); $this->_fields['class_key'] = 'modJSONRPCResource'; $this->xpdo->setOption('modResponse.class', 'jsonrpc.modJSONRPCResponse'); }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'idfxResource'); }
/** * Overrides modResource::__construct to set the class key for this Resource type * @param xPDO $xpdo A reference to the xPDO|modX instance */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'modStaticResource'); $this->showInContextMenu = true; }
function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'modDocument'); }
/** * Overrides modResource::__construct to set the class key for this Resource type * @param xPDO $xpdo A reference to the xPDO|modX instance */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'modDocument'); $this->showInContextMenu = true; }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); }
/** * * @return string */ function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'Store'); $this->set('hide_children_in_tree', true); }
function __construct(& $xpdo) { parent :: __construct($xpdo); $this->set('class_key','modStaticResource'); }
/** * Creates a modSymLink instance. * * {@inheritDoc} */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('type', 'reference'); $this->set('class_key', 'modSymLink'); }
function __construct(xPDO &$xpdo) { $xpdo->lexicon->load('shopmodx:resource'); return parent::__construct($xpdo); }
/** * Creates a modXMLRPCResource instance. * * {@inheritdoc} */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'modXMLRPCResource'); $this->showInContextMenu = false; }
public function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'GridContainer'); }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'Taxonomy'); $this->set('hide_children_in_tree', false); }
function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->set('class_key', 'CollectionContainer'); }