Author: danydb Date: 2013-09-19 16:22:41 +0200 (Thu, 19 Sep 2013) New Revision: 5404
Added: phpcompta/trunk/include/cfgtags.inc.php phpcompta/trunk/include/class_tag.php phpcompta/trunk/include/class_tag_sql.php Modified: phpcompta/trunk/include/class_phpcompta_sql.php Log: Files for tags Added: phpcompta/trunk/include/cfgtags.inc.php =================================================================== --- phpcompta/trunk/include/cfgtags.inc.php (rev 0) +++ phpcompta/trunk/include/cfgtags.inc.php 2013-09-19 14:22:41 UTC (rev 5404) @@ -0,0 +1,27 @@ +<?php +/* + * This file is part of PhpCompta. + * + * PhpCompta is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpCompta is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with PhpCompta; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +/* $Revision$ */ +// Copyright Author Dany De Bontridder [email protected] + +/** + * @file + * @brief Manage the tags + * + */ +?> Modified: phpcompta/trunk/include/class_phpcompta_sql.php =================================================================== --- phpcompta/trunk/include/class_phpcompta_sql.php 2013-09-19 14:22:22 UTC (rev 5403) +++ phpcompta/trunk/include/class_phpcompta_sql.php 2013-09-19 14:22:41 UTC (rev 5404) @@ -273,7 +273,7 @@ *@see seek *@return object */ - public function next($ret,$i) { + public function next($ret,$i) { $array=$this->cn->fetch_array($ret,$i); return $this->from_array($array); } Added: phpcompta/trunk/include/class_tag.php =================================================================== --- phpcompta/trunk/include/class_tag.php (rev 0) +++ phpcompta/trunk/include/class_tag.php 2013-09-19 14:22:41 UTC (rev 5404) @@ -0,0 +1,35 @@ +<?php +/* + * This file is part of PhpCompta. + * + * PhpCompta is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpCompta is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with PhpCompta; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +/* $Revision$ */ +// Copyright Author Dany De Bontridder [email protected] +require_once 'class_tag_sql.php'; + +class Tag +{ + function __construct($p_cn) + { + $this->data=new Tag_SQL($p_cn); + } + function show_list() + { + + } +} + +?> Added: phpcompta/trunk/include/class_tag_sql.php =================================================================== --- phpcompta/trunk/include/class_tag_sql.php (rev 0) +++ phpcompta/trunk/include/class_tag_sql.php 2013-09-19 14:22:41 UTC (rev 5404) @@ -0,0 +1,56 @@ +<?php +require_once('class_database.php'); +require_once('ac_common.php'); +require_once 'class_phpcompta_sql.php'; +/* + * This file is part of PhpCompta. + * + * PhpCompta is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpCompta is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with PhpCompta; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +/* $Revision$ */ +// Copyright Author Dany De Bontridder [email protected] +/** + * @brief Manage the table public.tag + */ +class Tag_SQL extends phpcompta_sql +{ + /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */ + + function __construct(& $p_cn, $p_id = -1) + { + $this->table = "public.tag"; + $this->primary_key = "t_id"; + + $this->name = array( + "t_id" => "t_id" + , "t_tag" => "t_tag" + , "t_description" => "t_description" + ); + $this->type = array( + "t_id" => "numeric" + , "t_tag" => "text" + , "t_description" => "text" + ); + $this->default = array( + "t_id" => "auto", + ); + global $cn; + + parent::__construct($cn,$p_id); + + } + +} +?> --- PhpCompta est un logiciel de comptabilité libre en ligne (full web) Projet opensource http://www.phpcompta.eu _______________________________________________ Phpcompta est un logiciel libre de comptabilité en ligne (http://www.phpcompta.eu) Phpcompta-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/phpcompta-dev
