本文整理汇总了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;
}
示例2: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->intListToBytes($a, $this->contextIDs);
$this->stringListToBytes($a, $this->filenames);
return $a;
}
示例3: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->intListToBytes($a, $this->sessions);
$this->stringListToBytes($a, $this->names);
return $a;
}
示例4: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->intToBytes($a, $this->context_id);
$this->boolToBytes($a, $this->allContexts);
return $a;
}
示例5: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->stringToBytes($a, $this->username);
$this->hash->serialize($a);
return $a;
}
示例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;
}
示例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;
}
示例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;
}
示例9: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->intToBytes($a, $this->command_type);
return $a;
}
示例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;
}
示例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;
}
示例12: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->longToBytes($a, $this->uptime);
return $a;
}
示例13: serialize
public function serialize(&$a = array())
{
$a = parent::serialize();
$this->uintToBytes($a, $this->id);
$this->uintToBytes($a, $this->status);
return $a;
}