/** * @todo: docs */ public function __construct() { parent::__construct(); if (!file_exists(dirname(__FILE__) . '/config.ini')) { // for now we bail out if there is no config.ini with login and password details throw new RuntimeException('Please create config.ini file with "apihost", "apiprotocol", "repohost", "repoprotocol", "login", "password", and optionally "wget" set to true if you want to use wget for HTTP operations'); } else { $this->api = new com_meego_obsconnector_API($this->config['apiprotocol'], $this->config['apihost'], $this->config['login'], $this->config['password'], $this->config['wget'], $this->config['wget_options']); $this->download_repo_host = $this->config['repohost']; $this->download_repo_protocol = $this->config['repoprotocol']; } }
public function __construct($engine, $fileSegment) { $this->fileSegment = $fileSegment; parent::__construct($engine); }
public function __construct(ConnectionInterface $db, $table, array $fields) { parent::__construct($db, $table, $fields, true); }
public function __construct(ConnectionInterface $db, $table, array $fields) { $fields['full_number'] = ['name' => 'full_number']; parent::__construct($db, $table, $fields, true); }
public function __construct(&$parent) { parent::__construct($parent); }
public function __construct() { parent::__construct(); $this->getDrupalCommentIdByWpIdStatement = $this->dbhImport->prepare("SELECT cid FROM comments WHERE wp_comment_id = :wp_comment_id"); $this->getDruaplNodeIdByWpPostIdStatement = $this->dbhImport->prepare("SELECT nid FROM posts WHERE post_id = :wp_post_id"); }
function __construct() { parent::__construct(); $this->getWpTermsStatement = $this->dbhWp->prepare("SELECT t.name FROM `wp_posts` p\n INNER JOIN wp_term_relationships tr ON (p.ID = tr.object_id)\n INNER JOIN wp_term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tt.taxonomy = 'category')\n INNER JOIN wp_terms t ON (tt.term_id = t.term_id)\n WHERE p.post_type = 'post' AND p.ID = :post_id"); $this->getWpKeywordsStatement = $this->dbhWp->prepare("SELECT t.name FROM `wp_posts` p\n INNER JOIN wp_term_relationships tr ON (p.ID = tr.object_id)\n INNER JOIN wp_term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tt.taxonomy = 'post_tag')\n INNER JOIN wp_terms t ON (tt.term_id = t.term_id)\n WHERE p.post_type = 'post' AND p.ID = :post_id"); }
function __construct() { parent::__construct(); }
public function __construct($engine, $dbConn) { $this->dbConn = $dbConn; parent::__construct($engine); }
/** * Constructor. * * Creates a new csv importer instance. * * @param Database $connection Database connection to use. * @param string $table Database table to import to. * @param array $options Import options. */ public function __construct($connection, $table, $options = array()) { parent::__construct($connection, $table, $options); }