本文整理汇总了PHP中Frame_Reflower类的典型用法代码示例。如果您正苦于以下问题:PHP Frame_Reflower类的具体用法?PHP Frame_Reflower怎么用?PHP Frame_Reflower使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Frame_Reflower类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: reflow
final function reflow()
{
// Uncomment this to see the frames before they're laid out, instead of
// during rendering.
//echo $this->_frame; flush();
$this->_reflower->reflow();
}
示例2: switch
function __construct(Text_Frame_Decorator $frame)
{
parent::__construct($frame);
$this->_block_parent = null;
// Handle text transform
$transform = $this->_frame->get_style()->text_transform;
switch (strtolower($transform)) {
case "capitalize":
$this->_frame->set_text(ucwords($this->_frame->get_text()));
break;
case "uppercase":
$this->_frame->set_text(strtoupper($this->_frame->get_text()));
break;
case "lowercase":
$this->_frame->set_text(strtolower($this->_frame->get_text()));
break;
default:
// Do nothing
break;
}
}
示例3:
function __construct(Frame_Decorator $frame)
{
parent::__construct($frame);
}
示例4:
function __construct(Table_Row_Frame_Decorator $frame)
{
parent::__construct($frame);
}
示例5:
function __construct($frame)
{
parent::__construct($frame);
}
示例6:
function __construct(Table_Frame_Decorator $frame)
{
$this->_state = null;
parent::__construct($frame);
}
示例7:
function __construct(Text_Frame_Decorator $frame)
{
parent::__construct($frame);
$this->_block_parent = null;
}
示例8:
final function get_min_max_width()
{
return $this->_reflower->get_min_max_width();
}
示例9:
function __construct(List_Bullet_Frame_Decorator $frame)
{
parent::__construct($frame);
}