本文整理匯總了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);
}