当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Gdata_Spreadsheets_Extension_RowCount类代码示例

本文整理汇总了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());
 }
开发者ID:jsnshrmn,项目名称:Suma,代码行数:10,代码来源:RowCountTest.php

示例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");
 }
开发者ID:robertfoleyjr,项目名称:robertfoleyjr-d6,代码行数:11,代码来源:CellFeedTest.php

示例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;
     }
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:19,代码来源:WorksheetEntry.php


注:本文中的Zend_Gdata_Spreadsheets_Extension_RowCount类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。