本文整理汇总了PHP中Message::getInstace方法的典型用法代码示例。如果您正苦于以下问题:PHP Message::getInstace方法的具体用法?PHP Message::getInstace怎么用?PHP Message::getInstace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Message
的用法示例。
在下文中一共展示了Message::getInstace方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
$this->db = new AddSignal_db();
$this->msg = Message::getInstace();
$this->signalsTypes = $this->db->getSignalTypes();
$this->dirImages = TaskStore::$dirProject . '/images';
$this->htmlDirImages = TaskStore::$htmlDirTop . '/images';
}
示例2: __construct
public function __construct($nodeRootName)
{
$this->msg = Message::getInstace();
$taskPar = TaskParameters::getInstance();
$nodeRootName = false === $nodeRootName ? 'requestRoot' : $nodeRootName;
$requestTree = new RequestTree();
$requestTree->setNodeRoot($nodeRootName);
// имя корня
$answ = $requestTree->uploadTree();
$this->requestTree = $answ['nodes'];
$this->conceptFunction = new ConceptFunction();
}
示例3: __construct
public function __construct()
{
$this->taskpPar = TaskParameters::getInstance();
$this->msg = Message::getInstace();
$config = yandexConfig();
$this->user = $config['yandexUser'];
$this->url = $config['yandexUrl'];
$this->key = $config['yandexKey'];
$this->host = $config['searchHost'];
//----------------------------------//
$this->Yandex = new Yandex($this->user, $this->key, $this->url);
}
示例4: add_signals
{
$sql = 'INSERT INTO add_signals (typeid, file_name,name,rang, text)
VALUES (:typeid, :fileName, :name, :rang, :text)';
$subst = ['typeid' => $currentSignal['typeid'], 'fileName' => $currentSignal['file'], 'name' => $currentSignal['name'], 'rang' => $currentSignal['rang'], 'text' => $currentSignal['text']];
$result = $this->sqlExecute($sql, $subst, __METHOD__);
if (false === $result) {
$this->errors[] = ['successful' => false, 'sql' => $sql, 'subst' => $subst, 'message' => $this->msg->getMessages()];
return false;
}
return $result;
}
}
$currentDir = __DIR__;
$sourceFile = $currentDir . '/addSignals.csv';
$signalsLoad = new AddSignalLoad();
$msg = Message::getInstace();
function load($signalLoad, $type, $signal)
{
// echo $signal['id'].'------'.
// $type['comment'].'-----'.
// $signal['name'].'-----'.
// $signal['file'].'-----'.
// mb_substr($signal['text'],0,50).'-----'.
// mb_strlen($signal['text']).
// '<br>'
// ;
$signal['typeid'] = $type['typeid'];
$sign = rand(0, 1);
$sign = $sign > 0 ? 1 : -1;
$signal['rang'] = rand(0, 100) * $sign;
$signalLoad->putSignal($signal);
示例5: __construct
public function __construct()
{
$this->db = new RequestTree_db();
$this->msg = Message::getInstace();
}
示例6: __construct
public function __construct()
{
$this->msg = Message::getInstace();
$this->db = new GeoLocation_db();
$this->city = ['cityId' => 77, 'regionId' => 77, 'cityName' => 'Москва', 'citySize' => 'big'];
}
示例7: __construct
public function __construct()
{
$this->db = new Thoughts_db();
$this->msg = Message::getInstace();
}
示例8: __construct
public function __construct()
{
$this->msg = Message::getInstace();
}
示例9: __construct
public function __construct()
{
$this->pdo = DbConnector::getConnect();
$this->msg = Message::getInstace();
}