예제 #1
0
파일: AProfile.php 프로젝트: kingsj/core
 /**
  * Save current form reference and sections list, and initialize the cache
  *
  * @param array $params   Widget params OPTIONAL
  * @param array $sections Sections list OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array(), array $sections = array())
 {
     parent::__construct($params, $sections);
     if (\XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS()) {
         $this->formFieldNames[] = $this->composeFieldName('cms_profile_id');
         $this->formFieldNames[] = $this->composeFieldName('drupal_roles');
     }
 }
예제 #2
0
파일: Main.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Save current form reference and initialize the cache
  *
  * @param array $params   Widget params OPTIONAL
  * @param array $sections Sections list OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array(), array $sections = array())
 {
     $this->sections = $this->getProfileMainSections() + $this->sections;
     parent::__construct($params, $sections);
 }