当前位置: 首页>>代码示例>>PHP>>正文


PHP JModelAdmin::__construct方法代码示例

本文整理汇总了PHP中JModelAdmin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JModelAdmin::__construct方法的具体用法?PHP JModelAdmin::__construct怎么用?PHP JModelAdmin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JModelAdmin的用法示例。


在下文中一共展示了JModelAdmin::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testConstructorAppliesConfiguration

 /**
  * Test JModelAdmin::__construct
  *
  * @since   3.4
  *
  * @return  void
  *
  * @testdox Constructor applies configuration
  */
 public function testConstructorAppliesConfiguration()
 {
     $config = array('event_after_delete' => 'event_after_delete', 'event_after_save' => 'event_after_save', 'event_before_delete' => 'event_before_delete', 'event_before_save' => 'event_before_save', 'event_change_state' => 'event_change_state', 'text_prefix' => 'text_prefix');
     $this->object->__construct($config);
     // Check if config was applied correctly
     foreach ($config as $key => $value) {
         if ($key == "text_prefix") {
             $this->assertEquals(strtoupper($value), TestReflection::getValue($this->object, $key));
         } else {
             $this->assertEquals($value, TestReflection::getValue($this->object, $key));
         }
     }
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:22,代码来源:JModelAdminTest.php

示例2: array

 /**
  * Constructor
  *
  * @since 0.9
  */
 function __construct()
 {
     parent::__construct();
     $cid = JRequest::getVar('cid', array(0), '', 'array');
     JArrayHelper::toInteger($cid, array(0));
     $this->setId($cid[0]);
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:12,代码来源:event.php

示例3: __construct

 /**
  * @param array $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $container = RokCommon_Service::getContainer();
     /** @var $dispatcher RokCommon_Dispatcher */
     $this->dispatcher = $container->roksprocket_dispatcher;
 }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:10,代码来源:module.php

示例4: __construct

 /**
  * Constructor
  * Determines the template ID
  *
  *
  * @since 1.1.0
  */
 public function __construct()
 {
     parent::__construct();
     $jinput = JFactory::getApplication()->input;
     $array = $jinput->get('cid', 0, '', 'array');
     $this->setId((int) $array[0]);
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:14,代码来源:template.php

示例5:

 function __construct()
 {
     $app = JFactory::getApplication();
     $this->contentid = JRequest::getCmd('id');
     $this->input = $app->input;
     parent::__construct();
 }
开发者ID:Glonum,项目名称:tz_portfolio,代码行数:7,代码来源:article.php

示例6:

 /**
  * Constructor that retrieves the ID from the request
  *
  * @access	public
  * @return	void
  */
 function __construct()
 {
     parent::__construct();
     //$array = JRequest::getVar('cid',  0, '', 'array');
     $array = JFactory::getApplication()->input->server->get('cid', 0, 'INT');
     $this->setId((int) $array[0]);
 }
开发者ID:khangcodt,项目名称:nvssehcweb,代码行数:13,代码来源:autosetting.php

示例7: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->app = JFactory::getApplication();
     $this->me = KunenaUserHelper::getMyself();
     $this->config = KunenaFactory::getConfig();
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:7,代码来源:templates.php

示例8:

 function __construct()
 {
     $this->imageCount = 0;
     $this->categoryCount = 0;
     $this->firstImageFolder = '';
     parent::__construct();
 }
开发者ID:01J,项目名称:skazkipronebo,代码行数:7,代码来源:phocagallerym.php

示例9: __construct

 /**
  * Constructor.
  *
  * @param   array $config An optional associative array of configuration settings.
  *
  * @see         JController
  * @since       1.0.0
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (isset($config['item_states'])) {
         $this->_item_states = $config['item_states'];
     }
 }
开发者ID:fields-and-filters,项目名称:fields-and-filters,代码行数:15,代码来源:element.php

示例10:

 /**
  * Constructor
  *
  * @since 0.9
  */
 function __construct()
 {
     parent::__construct();
     $group_id = JRequest::getVar('group_id', 0, '', 'int');
     $this->set('group_id', $group_id);
     $array = JRequest::getVar('cid', 0, '', 'array');
     $this->setId((int) $array[0]);
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:13,代码来源:groupmember.php

示例11: array

 /**
  * Class constructor.
  *
  * @param	array	$config	A named array of configuration variables.
  *
  * @return	JControllerForm
  * @since	1.6
  */
 function __construct($config = array())
 {
     parent::__construct($config);
     $params = JComponentHelper::getParams($this->option);
     $images_path = JPATH_SITE . '/' . $params->get('images_path', 'images/bt_portfolio') . '/';
     self::createFolder($images_path);
     self::createFolder($images_path . 'categories/');
 }
开发者ID:Tommar,项目名称:remate,代码行数:16,代码来源:category.php

示例12: __construct

 /**
  * Constructor.
  *
  * @param    array    An optional associative array of configuration settings.
  *
  * @see        JController
  */
 public function __construct()
 {
     // Load plugin parameters
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/parameters.php';
     $this->parameters = nnParameters::getInstance();
     $this->_config = $this->parameters->getComponentParams('snippets');
     parent::__construct();
 }
开发者ID:shamusdougan,项目名称:Sapient_Web,代码行数:15,代码来源:item.php

示例13: __construct

 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $layout = $this->getLayout();
     $jinput = JFactory::getApplication()->input;
     $render = $jinput->get('render', null, 'CMD');
     $this->context = strtolower($this->option . '.' . $this->getName() . ($layout ? '.' . $layout : '') . ($render ? '.' . $render : ''));
 }
开发者ID:gwtrains,项目名称:comRTiPrint,代码行数:15,代码来源:item.php

示例14:

 function __construct()
 {
     parent::__construct();
     if (!class_exists('TableTour')) {
         AImporter::table('tour');
     }
     $this->_table = $this->getTable('tour');
 }
开发者ID:hixbotay,项目名称:executivetransport,代码行数:8,代码来源:adtour.php

示例15:

 function __construct($config)
 {
     parent::__construct();
     $this->option = JOOMDOC_OPTION;
     $this->name = $this->getName();
     $this->setState($this->getName() . '.id', JRequest::getInt('id'));
     $this->checkin();
 }
开发者ID:abdullah929,项目名称:bulletin,代码行数:8,代码来源:license.php


注:本文中的JModelAdmin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。