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


PHP Command::deserialize方法代码示例

本文整理汇总了PHP中Command::deserialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::deserialize方法的具体用法?PHP Command::deserialize怎么用?PHP Command::deserialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Command的用法示例。


在下文中一共展示了Command::deserialize方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->stringToBytes($this->username);
     $hash = new Status();
     $hash->deserialize($data);
     $this->status = $hash;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:8,代码来源:initconnection.php

示例2: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToString($this->filename, $data);
     $this->torrent_file = new sBuffer();
     $this->torrent_file->deserialize($data);
     $this->bytesToBool($this->start, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:8,代码来源:context_create.php

示例3: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->which_command = Command::CN_UNDEFINED;
     $command_present = false;
     $this->bytesToBool($command_present, $data);
     if ($command_present) {
         $this->bytesToInt($this->which_command, $data);
     }
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:10,代码来源:session_error.php

示例4: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToLong($this->session, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:5,代码来源:setup.php

示例5: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->command_type, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:5,代码来源:ack.php

示例6: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToString($this->name, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:5,代码来源:session_name.php

示例7: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->limitUpld, $data);
     $this->bytesToInt($this->limitDwnld, $data);
     $this->bytesToInt($this->maxUploads, $data);
     $this->bytesToInt($this->maxConnections, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:8,代码来源:limit.php

示例8: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->which_command = Command::CN_UNDEFINED;
     $command_present = false;
     $this->bytesToBool($command_present, $data);
     if ($command_present) {
         $this->bytesToInt($this->which_command, $data);
     }
     $this->isMessagePresent = false;
     $this->bytesToBool($this->isMessagePresent, $data);
     if ($this->isMessagePresent) {
         $this->bytesToString($this->message, $data);
     } else {
         $this->message = "";
     }
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:17,代码来源:error.php

示例9: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToIntList($this->sessions, $data);
     $this->bytesToStringList($this->names, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:6,代码来源:session_list_rsp.php

示例10: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToUint($this->opid, $data);
     $this->bytesToUint($this->optype, $data);
     $this->bytesToUint($this->opstatus, $data);
     $b = false;
     $this->bytesToBool($b, $data);
     /*
     		if ($b == true)
     		{
     			$this->bytesToString($this->opdatastr, $data);
     		}
     */
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:15,代码来源:opstat.php

示例11: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToIntList($this->contextIDs, $data);
     $this->bytesToStringList($this->filenames, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:6,代码来源:context_clean_rsp.php

示例12: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->context_id, $data);
     $this->bytesToBool($this->allContexts, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:6,代码来源:context.php

示例13: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToUint($this->id, $data);
     $tmp = -1;
     $this->bytesToUint($tmp, $data);
     switch ($tmp) {
         case urlStatus::URLS_UNDEF:
         case urlStatus::URLS_WORKING:
         case urlStatus::URLS_FINISHED:
         case urlStatus::URLS_ERROR:
         case urlStatus::URLS_CREATE:
         case urlStatus::URLS_CREATE_ERR:
             $this->status = $tmp;
             break;
         default:
             $this->status = urlStatus::URLS_UNDEF;
             break;
     }
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:20,代码来源:context_create_url.php

示例14: deserialize

 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToUint($this->id, $data);
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:5,代码来源:context_create_url.php


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