本文整理汇总了PHP中FileData::_TSPEC方法的典型用法代码示例。如果您正苦于以下问题:PHP FileData::_TSPEC方法的具体用法?PHP FileData::_TSPEC怎么用?PHP FileData::_TSPEC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileData
的用法示例。
在下文中一共展示了FileData::_TSPEC方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($vals = null)
{
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(1 => array('var' => 'fid', 'type' => TType::I32), 2 => array('var' => 'url', 'type' => TType::STRING), 3 => array('var' => 'name', 'type' => TType::STRING), 4 => array('var' => 'plugin', 'type' => TType::STRING), 5 => array('var' => 'size', 'type' => TType::I64), 6 => array('var' => 'format_size', 'type' => TType::STRING), 7 => array('var' => 'status', 'type' => TType::I32), 8 => array('var' => 'statusmsg', 'type' => TType::STRING), 9 => array('var' => 'packageID', 'type' => TType::I32), 10 => array('var' => 'error', 'type' => TType::STRING), 11 => array('var' => 'order', 'type' => TType::I16), 12 => array('var' => 'progress', 'type' => TType::BYTE));
}
if (is_array($vals)) {
if (isset($vals['fid'])) {
$this->fid = $vals['fid'];
}
if (isset($vals['url'])) {
$this->url = $vals['url'];
}
if (isset($vals['name'])) {
$this->name = $vals['name'];
}
if (isset($vals['plugin'])) {
$this->plugin = $vals['plugin'];
}
if (isset($vals['size'])) {
$this->size = $vals['size'];
}
if (isset($vals['format_size'])) {
$this->format_size = $vals['format_size'];
}
if (isset($vals['status'])) {
$this->status = $vals['status'];
}
if (isset($vals['statusmsg'])) {
$this->statusmsg = $vals['statusmsg'];
}
if (isset($vals['packageID'])) {
$this->packageID = $vals['packageID'];
}
if (isset($vals['error'])) {
$this->error = $vals['error'];
}
if (isset($vals['order'])) {
$this->order = $vals['order'];
}
if (isset($vals['progress'])) {
$this->progress = $vals['progress'];
}
}
}