当前位置: 首页>>代码示例>>PHP>>正文


PHP Message::getInstace方法代码示例

本文整理汇总了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';
 }
开发者ID:mnudelman,项目名称:elize,代码行数:8,代码来源:AddSignals.php

示例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();
 }
开发者ID:mnudelman,项目名称:elize,代码行数:12,代码来源:RequestGo.php

示例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);
 }
开发者ID:mnudelman,项目名称:elize,代码行数:12,代码来源:YandexController.php

示例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);
开发者ID:mnudelman,项目名称:elize,代码行数:31,代码来源:addSignalLoadData.php

示例5: __construct

 public function __construct()
 {
     $this->db = new RequestTree_db();
     $this->msg = Message::getInstace();
 }
开发者ID:mnudelman,项目名称:elize,代码行数:5,代码来源:RequestTree.php

示例6: __construct

 public function __construct()
 {
     $this->msg = Message::getInstace();
     $this->db = new GeoLocation_db();
     $this->city = ['cityId' => 77, 'regionId' => 77, 'cityName' => 'Москва', 'citySize' => 'big'];
 }
开发者ID:mnudelman,项目名称:elize,代码行数:6,代码来源:GeoLocation.php

示例7: __construct

 public function __construct()
 {
     $this->db = new Thoughts_db();
     $this->msg = Message::getInstace();
 }
开发者ID:mnudelman,项目名称:elize,代码行数:5,代码来源:Thoughts.php

示例8: __construct

 public function __construct()
 {
     $this->msg = Message::getInstace();
 }
开发者ID:mnudelman,项目名称:elize,代码行数:4,代码来源:RequestType.php

示例9: __construct

 public function __construct()
 {
     $this->pdo = DbConnector::getConnect();
     $this->msg = Message::getInstace();
 }
开发者ID:mnudelman,项目名称:elize,代码行数:5,代码来源:Db_base.php


注:本文中的Message::getInstace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。