當前位置: 首頁>>代碼示例>>PHP>>正文


PHP OLE::Asc2Ucs方法代碼示例

本文整理匯總了PHP中OLE::Asc2Ucs方法的典型用法代碼示例。如果您正苦於以下問題:PHP OLE::Asc2Ucs方法的具體用法?PHP OLE::Asc2Ucs怎麽用?PHP OLE::Asc2Ucs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OLE的用法示例。


在下文中一共展示了OLE::Asc2Ucs方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: OLE

 /**
  * Constructor
  *
  * @access public
  * @param integer $time_1st A timestamp
  * @param integer $time_2nd A timestamp
  */
 function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
 {
     $_ole = new OLE();
     $_sys = new System();
     $this->_tmp_dir = $_sys->tmpdir();
     $this->OLE_PPS(null, $_ole->Asc2Ucs('Root Entry'), OLE_PPS_TYPE_ROOT, null, null, null, $time_1st, $time_2nd, null, $raChild);
 }
開發者ID:netcon-source,項目名稱:dotspotting,代碼行數:14,代碼來源:Root.php

示例2: OLE_PPS_Root

 /**
 * Constructor
 *
 * @access public
 * @param integer $time_1st A timestamp
 * @param integer $time_2nd A timestamp
 */
 function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
 {
     $this->_tmp_dir = '';
     $this->OLE_PPS(
        null, 
        OLE::Asc2Ucs('Root Entry'),
        OLE_PPS_TYPE_ROOT,
        null,
        null,
        null,
        $time_1st,
        $time_2nd,
        null,
        $raChild);
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:22,代碼來源:Root.php

示例3: __construct

 /**
 * Constructor
 *
 * @access public
 * @param integer $time_1st A timestamp
 * @param integer $time_2nd A timestamp
 */
 function __construct($time_1st, $time_2nd, $raChild)
 {
     $this->_tmp_dir = System::tmpdir();
     parent::__construct(
        null, 
        OLE::Asc2Ucs('Root Entry'),
        OLE_PPS_TYPE_ROOT,
        null,
        null,
        null,
        $time_1st,
        $time_2nd,
        null,
        $raChild);
 }
開發者ID:realsoc,項目名稱:mediawiki-extensions,代碼行數:22,代碼來源:OLE_PPS_Root.php

示例4: _storeOLEFile

 /**
  * Store the workbook in an OLE container
  *
  * @access private
  * @return mixed true on success. PEAR_Error on failure
  */
 function _storeOLEFile()
 {
     if ($this->_BIFF_version == 0x600) {
         $OLE = new OLE_PPS_File(OLE::Asc2Ucs('Workbook'));
     } else {
         $OLE = new OLE_PPS_File(OLE::Asc2Ucs('Book'));
     }
     if ($this->_tmp_dir != '') {
         $OLE->setTempDir($this->_tmp_dir);
     }
     $res = $OLE->init();
     if ($this->isError($res)) {
         return $this->raiseError("OLE Error: " . $res->getMessage());
     }
     $OLE->append($this->_data);
     $total_worksheets = count($this->_worksheets);
     for ($i = 0; $i < $total_worksheets; $i++) {
         while ($tmp = $this->_worksheets[$i]->getData()) {
             $OLE->append($tmp);
         }
     }
     $root = new OLE_PPS_Root(time(), time(), array($OLE));
     if ($this->_tmp_dir != '') {
         $root->setTempDir($this->_tmp_dir);
     }
     $res = $root->save($this->_filename);
     if ($this->isError($res)) {
         return $this->raiseError("OLE Error: " . $res->getMessage());
     }
     return true;
 }
開發者ID:phpsmith,項目名稱:IS4C,代碼行數:37,代碼來源:Workbook.php

示例5: storeOLEFile

 /**
  * Store the workbook in an OLE container
  *
  * @access private
  * @return mixed true on success. PEAR_Error on failure
  */
 protected function storeOLEFile()
 {
     if ($this->BIFF_version == 0x600) {
         $OLE = new OLE_PPS_File(OLE::Asc2Ucs('Workbook'));
     } else {
         $OLE = new OLE_PPS_File(OLE::Asc2Ucs('Book'));
     }
     if ($this->temporaryDirectory != '') {
         $OLE->setTempDir($this->temporaryDirectory);
     }
     $res = $OLE->init();
     if ($this->isError($res)) {
         return $this->raiseError('OLE Error: ' . $res->getMessage());
     }
     $OLE->append($this->data);
     $total_worksheets = count($this->workSheet);
     for ($i = 0; $i < $total_worksheets; ++$i) {
         while ($tmp = $this->workSheet[$i]->getData()) {
             $OLE->append($tmp);
         }
     }
     $root = new OLE_PPS_Root(time(), time(), array($OLE));
     if ($this->temporaryDirectory != '') {
         $root->setTempDir($this->temporaryDirectory);
     }
     $res = $root->save($this->fileName);
     if ($this->isError($res)) {
         return $this->raiseError('OLE Error: ' . $res->getMessage());
     }
     return true;
 }
開發者ID:stevleibelt,項目名稱:Spreadsheet_Excel_Writer,代碼行數:37,代碼來源:Workbook.php


注:本文中的OLE::Asc2Ucs方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。