Make widget's property sequence and length readonly.

This commit is contained in:
joyqi 2021-08-20 11:27:03 +08:00
parent 256fff6b24
commit 478ec92491

View File

@ -300,28 +300,6 @@ abstract class Typecho_Widget
echo $args[(0 == $split ? $num : $split) - 1];
}
/**
* 输出顺序值
*
* @access public
* @return void
*/
public function sequence()
{
echo $this->sequence;
}
/**
* 输出数据长度
*
* @access public
* @return void
*/
public function length()
{
echo $this->length;
}
/**
* 返回堆栈是否为空
*
@ -408,22 +386,6 @@ abstract class Typecho_Widget
$this->row[$name] = $value;
}
/**
* @return int
*/
public function getSequence(): int
{
return $this->sequence;
}
/**
* @return int
*/
public function getLength(): int
{
return $this->length;
}
/**
* 验证堆栈值是否存在
*
@ -438,6 +400,26 @@ abstract class Typecho_Widget
return isset($this->row[$name]);
}
/**
* 输出顺序值
*
* @return int
*/
public function ___sequence(): int
{
return $this->sequence;
}
/**
* 输出数据长度
*
* @return int
*/
public function ___length(): int
{
return $this->length;
}
/**
* 解析回调
*