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


PHP Command::serialize方法代码示例

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


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

示例1: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->buildID);
     $this->longToBytes($a, $this->session);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:session_attach.php

示例2: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intListToBytes($a, $this->contextIDs);
     $this->stringListToBytes($a, $this->filenames);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:context_clean_rsp.php

示例3: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intListToBytes($a, $this->sessions);
     $this->stringListToBytes($a, $this->names);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:session_list_rsp.php

示例4: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->context_id);
     $this->boolToBytes($a, $this->allContexts);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:context.php

示例5: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->username);
     $this->hash->serialize($a);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:initconnection.php

示例6: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->filename);
     $this->torrent_file->serialize($a);
     $this->boolToBytes($a, $this->start);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:8,代码来源:context_create.php

示例7: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $command_present = true;
     if ($this->which_command == Command::CN_UNAVAILABLE) {
         $command_present = false;
     }
     $this->boolToBytes($a, $command_present);
     if ($command_present) {
         $this->intToBytes($a, $this->which_command);
     }
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:13,代码来源:session_error.php

示例8: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $command_present = true;
     if ($this->which_command == Command::CN_UNAVAILABLE) {
         $command_present = false;
     }
     $this->boolToBytes($a, $command_present);
     if ($command_present) {
         $this->intToBytes($a, $this->which_command);
     }
     $message_present = true;
     if (strlen($this->message) == 0 || !$this->isMessagePresent) {
         $message_present = false;
     }
     $this->boolToBytes($a, $message_present);
     if ($message_present) {
         $this->stringToBytes($a, $this->message);
     }
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:21,代码来源:error.php

示例9: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->command_type);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:6,代码来源:ack.php

示例10: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->limitUpld);
     $this->intToBytes($a, $this->limitDwnld);
     $this->intToBytes($a, $this->maxUploads);
     $this->intToBytes($a, $this->maxConnections);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:9,代码来源:limit.php

示例11: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->uintToBytes($a, $this->opid);
     $this->uintToBytes($a, $this->optype);
     $this->uintToBytes($a, $this->opstatus);
     if (strlen($this->opdatastr) > 0) {
         $b = true;
         $this->boolToBytes($a, $b);
         $this->stringToBytes($a, $this->opdatastr);
     } else {
         $b = false;
         $this->boolToBytes($a, $b);
     }
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:16,代码来源:opstat.php

示例12: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->longToBytes($a, $this->uptime);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:6,代码来源:uptime.php

示例13: serialize

 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->uintToBytes($a, $this->id);
     $this->uintToBytes($a, $this->status);
     return $a;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:7,代码来源:context_create_url.php


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