Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $this->publicPath = $this->variableGet('file_public_path', 'sites/default/files');
     $this->privatePath = $this->variableGet('file_private_path', NULL);
     $this->temporaryPath = $this->variableGet('file_temporary_path', '/tmp');
     return parent::initializeIterator();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function initializeIterator()
 {
     $conf_path = isset($this->configuration['conf_path']) ? $this->configuration['conf_path'] : 'sites/default';
     $this->filePath = $this->variableGet('file_directory_path', $conf_path . '/files') . '/';
     $this->tempFilePath = $this->variableGet('file_directory_temp', '/tmp') . '/';
     return parent::initializeIterator();
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $this->teaserLength = $this->variableGet('teaser_length', 600);
     $this->nodePreview = $this->variableGet('node_preview', 0);
     $this->themeSettings = $this->variableGet('theme_settings', array());
     return parent::initializeIterator();
 }
Пример #4
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $site_path = isset($this->configuration['site_path']) ? $this->configuration['site_path'] : 'sites/default';
     $this->filePath = $this->variableGet('file_directory_path', $site_path . '/files') . '/';
     $this->tempFilePath = $this->variableGet('file_directory_temp', '/tmp') . '/';
     // FILE_DOWNLOADS_PUBLIC == 1 and FILE_DOWNLOADS_PRIVATE == 2.
     $this->isPublic = $this->variableGet('file_downloads', 1) == 1;
     return parent::initializeIterator();
 }
Пример #5
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $filter_roles = $this->select('filter_formats', 'f')->fields('f', array('format', 'roles'))->execute()->fetchAllKeyed();
     foreach ($filter_roles as $format => $roles) {
         // Drupal 6 code: $roles = ','. implode(',', $roles) .',';
         // Remove the beginning and ending comma.
         foreach (explode(',', trim($roles, ',')) as $rid) {
             $this->filterPermissions[$rid][] = $format;
         }
     }
     return parent::initializeIterator();
 }
Пример #6
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $this->defaultTheme = $this->variableGet('theme_default', 'Garland');
     $this->adminTheme = $this->variableGet('admin_theme', null);
     return parent::initializeIterator();
 }
Пример #7
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $this->nodeTypes = $this->select('node_type', 'nt')->fields('nt', array('type', 'name'))->execute()->fetchAllKeyed();
     return parent::initializeIterator();
 }
Пример #8
0
 /**
  * {@inheritdoc}
  */
 protected function initializeIterator()
 {
     $this->filterDefaultFormat = $this->variableGet('filter_default_format', '1');
     return parent::initializeIterator();
 }