public function __construct($text, $model_id = CONTENT_MODEL_TEXT)
 {
     parent::__construct($model_id);
     if ($text === null || $text === false) {
         wfWarn("TextContent constructed with \$text = " . var_export($text, true) . "! " . "This may indicate an error in the caller's scope.");
         $text = '';
     }
     if (!is_string($text)) {
         throw new MWException("TextContent expects a string in the constructor.");
     }
     $this->mText = $text;
 }
 /**
  * @param Message|string $msg A Message object, or a message key.
  * @param string[] $params An optional array of message parameters.
  */
 public function __construct($msg, $params = null)
 {
     # XXX: messages may be wikitext, html or plain text! and maybe even something else entirely.
     parent::__construct(CONTENT_MODEL_WIKITEXT);
     if (is_string($msg)) {
         $this->mMessage = wfMessage($msg);
     } else {
         $this->mMessage = clone $msg;
     }
     if ($params) {
         $this->mMessage = $this->mMessage->params($params);
     }
 }
 public function __construct($data)
 {
     parent::__construct("testing");
     $this->data = $data;
 }
 public function __construct($contentModel = CONTENT_MODEL_FLOW_BOARD, UUID $workflowId = null)
 {
     parent::__construct($contentModel);
     $this->workflowId = $workflowId;
 }