本文整理汇总了PHP中Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::initializeIterator方法的典型用法代码示例。如果您正苦于以下问题:PHP DrupalSqlBase::initializeIterator方法的具体用法?PHP DrupalSqlBase::initializeIterator怎么用?PHP DrupalSqlBase::initializeIterator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase
的用法示例。
在下文中一共展示了DrupalSqlBase::initializeIterator方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initializeIterator
/**
* {@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: initializeIterator
/**
* {@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: initializeIterator
/**
* {@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: initializeIterator
/**
* {@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();
}
示例5: initializeIterator
/**
* {@inheritdoc}
*/
protected function initializeIterator()
{
$this->defaultTheme = $this->variableGet('theme_default', 'Garland');
$this->adminTheme = $this->variableGet('admin_theme', null);
return parent::initializeIterator();
}
示例6: initializeIterator
/**
* {@inheritdoc}
*/
protected function initializeIterator()
{
$this->nodeTypes = $this->select('node_type', 'nt')->fields('nt', array('type', 'name'))->execute()->fetchAllKeyed();
return parent::initializeIterator();
}
示例7: initializeIterator
/**
* {@inheritdoc}
*/
protected function initializeIterator()
{
$this->filterDefaultFormat = $this->variableGet('filter_default_format', '1');
return parent::initializeIterator();
}