/** * Constructor */ public function __construct() { parent::__construct(); /* if ( !extension_loaded('tidy') ) { _throw( new Charcoal_ExtensionNotLoadedException('tidy') ); } */ $this->tidy = new Tidy(); }
public function __construct() { $switcher = new Charcoal_ErrorReportingSwitcher(0, E_DEPRECATED); require_once 'qdmail.php'; require_once 'qdsmtp.php'; parent::__construct(); $this->qdmail = new Qdmail('utf-8', 'base64'); $this->qdmail->unitedCharset('UTF-8'); $this->qdmail->lineFeed("\n"); // 改行コードは\n(ヘッダが見えてしまうため) $this->qdmail->is_qmail = FALSE; // 改行コードは\n(ヘッダが見えてしまうため) }
public function __construct() { parent::__construct(); $class_name = get_class($this); $this->_class_vars = get_class_vars($class_name); $this->_relations = array(); $annotaions = array(); // プライマリーキーと外部キーの確認 foreach ($this->_class_vars as $field => $value) { // 最初がアンダースコアで始まるフィールドは対象外 if (strpos($field, "_") === 0) { continue; } $annot_map = $this->parseAnnotation($field, $value); // プライマリキーの確認 if (isset($annot_map['pk'])) { if ($this->_primary_key) { // 2回以上指定はできない _throw(new Charcoal_AnnotaionException($class_name, $field, "@pk", "@pk annotation must be one per model")); } $this->_primary_key = $field; } // 外部キーの確認 if (isset($annot_map['fk'])) { $a_value = $annot_map['fk']; $model_name = s($a_value); if (!$model_name || $model_name->isEmpty()) { _throw(new Charcoal_AnnotaionException($class_name, $field, "@fk", "@fk annotation requires model name")); } $this->_foreign_keys[us($model_name)] = $field; } // DBフィールド if (isset($annot_map['field'])) { $this->_db_fields[] = $field; } $annotaions[$field] = $annot_map; } $this->_annotaions = $annotaions; }
public function __construct() { parent::__construct(); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->creator = new UniversalFeedCreator(); }
public function __construct() { parent::__construct(); $this->_impl = new Charcoal_Cookie(); }
/** * Construct object */ public function __construct() { parent::__construct(); $this->values = array(); }
/** * Construct object */ public function __construct() { parent::__construct(); $this->_base_pos = new Charcoal_PositionFloat(f(0.0), f(0.0)); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->simple_pie = new SimplePie(); }
public function __construct() { parent::__construct(); $this->_priority = 0; }