コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * 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');
 }
コード例 #4
0
ファイル: article.class.php プロジェクト: raadhuis/modx-basic
 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);
 }
コード例 #5
0
 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');
 }
コード例 #6
0
 /**
  * @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);
 }
コード例 #7
0
ファイル: msproduct.class.php プロジェクト: Vitaliz/miniShop2
 /**
  * {@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";
 }
コード例 #9
0
 function __construct(&$xpdo)
 {
     parent::__construct($xpdo);
     $this->_fields['class_key'] = 'modJSONRPCResource';
     $this->xpdo->setOption('modResponse.class', 'jsonrpc.modJSONRPCResponse');
 }
コード例 #10
0
 function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'idfxResource');
 }
コード例 #11
0
 /**
  * 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;
 }
コード例 #12
0
 function __construct(&$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'modDocument');
 }
コード例 #13
0
 /**
  * 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;
 }
コード例 #14
0
 function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
 }
コード例 #15
0
ファイル: store.class.php プロジェクト: carnevlu/repoman
 /**
  *
  * @return string
  */
 function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'Store');
     $this->set('hide_children_in_tree', true);
 }
コード例 #16
0
 function __construct(& $xpdo) {
     parent :: __construct($xpdo);
     $this->set('class_key','modStaticResource');
 }
コード例 #17
0
 /**
  * Creates a modSymLink instance.
  *
  * {@inheritDoc}
  */
 function __construct(&$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('type', 'reference');
     $this->set('class_key', 'modSymLink');
 }
コード例 #18
0
 function __construct(xPDO &$xpdo)
 {
     $xpdo->lexicon->load('shopmodx:resource');
     return parent::__construct($xpdo);
 }
コード例 #19
0
 /**
  * Creates a modXMLRPCResource instance.
  *
  * {@inheritdoc}
  */
 function __construct(&$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'modXMLRPCResource');
     $this->showInContextMenu = false;
 }
コード例 #20
0
 public function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'GridContainer');
 }
コード例 #21
0
ファイル: taxonomy.class.php プロジェクト: carnevlu/repoman
 function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'Taxonomy');
     $this->set('hide_children_in_tree', false);
 }
コード例 #22
0
 function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->set('class_key', 'CollectionContainer');
 }