本文整理匯總了PHP中Zend_Pdf_ElementFactory_Interface::setObjectCount方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Pdf_ElementFactory_Interface::setObjectCount方法的具體用法?PHP Zend_Pdf_ElementFactory_Interface::setObjectCount怎麽用?PHP Zend_Pdf_ElementFactory_Interface::setObjectCount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Pdf_ElementFactory_Interface
的用法示例。
在下文中一共展示了Zend_Pdf_ElementFactory_Interface::setObjectCount方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setObjectCount
/**
* Set object counter
*
* @param integer $objCount
*/
public function setObjectCount($objCount)
{
$this->_factory->setObjectCount($objCount);
}
示例2: rollback
/**
* Rollback document $steps number of revisions.
* This method must be invoked before any changes, applied to the document.
* Otherwise behavior is undefined.
*
* @param integer $steps
*/
public function rollback($steps)
{
for ($count = 0; $count < $steps; $count++) {
if ($this->_trailer->getPrev() !== null && $this->_trailer->getPrev()->Root !== null) {
$this->_trailer = $this->_trailer->getPrev();
} else {
break;
}
}
$this->_objFactory->setObjectCount($this->_trailer->Size->value);
// Mark content as modified to force new trailer generation at render time
$this->_trailer->Root->touch();
$this->pages = array();
$this->_loadPages($this->_trailer->Root->Pages);
}