本文整理汇总了PHP中Zend_Gdata_Spreadsheets_Extension_RowCount类的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_Spreadsheets_Extension_RowCount类的具体用法?PHP Zend_Gdata_Spreadsheets_Extension_RowCount怎么用?PHP Zend_Gdata_Spreadsheets_Extension_RowCount使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Zend_Gdata_Spreadsheets_Extension_RowCount类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testToAndFromString
public function testToAndFromString()
{
$this->rowCount->setText('20');
$this->assertTrue($this->rowCount->getText() == '20');
$newRowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount();
$doc = new DOMDocument();
$doc->loadXML($this->rowCount->saveXML());
$newRowCount->transferFromDom($doc->documentElement);
$this->assertTrue($this->rowCount->getText() == $newRowCount->getText());
}
示例2: testGetSetCounts
public function testGetSetCounts()
{
$newRowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount();
$newRowCount->setText("20");
$newColCount = new Zend_Gdata_Spreadsheets_Extension_ColCount();
$newColCount->setText("50");
$this->cellFeed->setRowCount($newRowCount);
$this->cellFeed->setColumnCount($newColCount);
$this->assertTrue($this->cellFeed->getRowCount()->getText() == "20");
$this->assertTrue($this->cellFeed->getColumnCount()->getText() == "50");
}
示例3: takeChildFromDOM
protected function takeChildFromDOM($child)
{
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
switch ($absoluteNodeName) {
case $this->lookupNamespace('gs') . ':' . 'rowCount':
$rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount();
$rowCount->transferFromDOM($child);
$this->_rowCount = $rowCount;
break;
case $this->lookupNamespace('gs') . ':' . 'colCount':
$colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount();
$colCount->transferFromDOM($child);
$this->_colCount = $colCount;
break;
default:
parent::takeChildFromDOM($child);
break;
}
}