[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4225 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4225 - phpcompta/trunk/include |
Date: |
Sat, 22 Oct 2011 22:16:45 +0200 (CEST) |
Author: danydb
Date: 2011-10-22 22:16:44 +0200 (Sat, 22 Oct 2011)
New Revision: 4225
Modified:
phpcompta/trunk/include/class_acc_bilan.php
Log:
add documentation
Modified: phpcompta/trunk/include/class_acc_bilan.php
===================================================================
--- phpcompta/trunk/include/class_acc_bilan.php 2011-10-22 20:15:50 UTC (rev
4224)
+++ phpcompta/trunk/include/class_acc_bilan.php 2011-10-22 20:16:44 UTC (rev
4225)
@@ -273,7 +273,7 @@
$form=fopen($this->b_file_form,'r');
if ( $form == false)
{
- echo 'Cannot Open';
+ echo __FILE__.":".__LINE__.'Cannot Open'.$this->b_file_form;
exit();
}
return $form;
@@ -285,7 +285,7 @@
$templ=fopen($this->b_file_template,'r');
if ( $templ == false)
{
- echo 'Cannot Open';
+ echo __FILE__.":".__LINE__.'Cannot Open'.$this->b_file_template;
exit();
}
return $templ;
@@ -296,8 +296,8 @@
* \param $p_handle the handle to the file
* \param
* \param
- *
*
+ *
* \return
*/
function compute_formula($p_handle)
@@ -305,10 +305,8 @@
while (! feof ($p_handle))
{
$buffer=trim(fgets($p_handle));
- // $a=(CheckFormula($buffer) == true)?"$buffer ok<br>":'<font
color="red">'.'Pas ok '.$buffer."</font><br>";
- // echo $a;
- // blank line are skipped
- if (strlen(trim($buffer))==0)
+
+ if (strlen(trim($buffer))==0)
continue;
// skip comment
if ( strpos($buffer,'#') === true )
@@ -324,9 +322,9 @@
}// end read form line per line
}
/*!\brief generate the ods document
- * \param the handle to the template file
- * \return the xml
- address@hidden
+ * \param the handle to the template file
+ * \return the xml
+ address@hidden
* Sur une seule ligne il y a plusieurs données, donc il y a plusieurs
boucles, pour les autres documents
* cela devrait être fait aussi, actuellement ces documents, n'acceptent
qu'une formule par ligne.
address@hidden
@@ -352,13 +350,13 @@
ob_start();
/* unzip the document */
$zip = new Zip_Extended;
- if ($zip->open($work_file) === TRUE)
+ if ($zip->open($work_file) === TRUE)
{
$zip->extractTo($dirname.DIRECTORY_SEPARATOR);
$zip->close();
- } else
+ } else
{
- echo __FILE__.":".__LINE__."cannot unzip model ".$filename;
+ echo __FILE__.":".__LINE__."cannot unzip model ".$filename;
}
ob_end_clean();
@@ -391,7 +389,7 @@
// the line contains the magic <<
$tmp="";
-
+
while (preg_match_all($regex,$line_rtf,$f2) > 0 )
{
// the f2 array contains all the magic << in the line
@@ -606,13 +604,13 @@
case 'ods':
/* header("Pragma: public");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- header("Cache-Control: must-revalidate");
+ header("Cache-Control: must-revalidate");
if ( $this->b_type == 'odt' )
header('Content-type: application/vnd.oasis.opendocument.text');
if ( $this->b_type == 'ods' )
header('Content-type:
application/vnd.oasis.opendocument.spreadsheet');
header('Content-Disposition:
attachment;filename="'.$this->b_name.'.odt"',FALSE);
- header("Accept-Ranges: bytes");
+ header("Accept-Ranges: bytes");
*/
ob_start();
// save the file in a temp folder
@@ -636,14 +634,14 @@
*/
ob_start();
$zip = new Zip_Extended;
- if ($zip->open($work_file) === TRUE)
+ if ($zip->open($work_file) === TRUE)
{
$zip->extractTo($dirname.DIRECTORY_SEPARATOR);
$zip->close();
- }
- else
+ }
+ else
{
- echo __FILE__.":".__LINE__."cannot unzip model ".$filename;
+ echo __FILE__.":".__LINE__."cannot unzip model ".$filename;
}
// Remove the file we do not need anymore
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4225 - phpcompta/trunk/include,
phpcompta-dev <=