本文整理匯總了PHP中javascript::blockOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP javascript::blockOptions方法的具體用法?PHP javascript::blockOptions怎麽用?PHP javascript::blockOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javascript
的用法示例。
在下文中一共展示了javascript::blockOptions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: blockEnd
public static function blockEnd()
{
// see if we are being called with an open style output buffer
if (empty(self::$blockOptions['inBlock'])) {
return;
}
// get the scrip out of the buffer
$script = @ob_get_contents();
// clean and restart the buffer
@ob_end_clean();
ob_start();
echo self::$outputBuffer;
// null our temporary storage
self::$outputBuffer = NULL;
// get the options
$options = self::$blockOptions;
self::$blockOptions = array();
// if we didnt recieve anything then move on
if (empty($script)) {
return;
}
// process what we got in the style buffer
echo self::codeBlock($script, $options);
}