mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 17:09:41 +01:00
Make widget's property sequence and length readonly.
This commit is contained in:
parent
256fff6b24
commit
478ec92491
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析回调
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user