noalyss  Version-6.7.2
Public Member Functions | Static Public Member Functions | Data Fields
Acc_Balance Class Reference

Class for manipulating data to print the balance of account. More...

Public Member Functions

 Acc_Balance ($p_cn)
 = 0)
 filter_cat ($p_array)
 set the $this->jrn to the cat

Static Public Member Functions

static test_me ()

Data Fields

 $db
 $from_poste
 $jrn
 $row
 $to_poste
 $unsold

Detailed Description

Class for manipulating data to print the balance of account.

Definition at line 28 of file class_acc_balance.php.


Member Function Documentation

= 0)

Definition at line 36 of file class_acc_balance.php.

References $from_poste, $to_poste, $unsold, db, and jrn.

Referenced by test_me().

    {
        $this->db=$p_cn;
        $this->jrn=null;
        $from_poste="";
        $to_poste="";
        $unsold=false;
    }
Acc_Balance::filter_cat ( p_array)

set the $this->jrn to the cat

Definition at line 252 of file class_acc_balance.php.

References $array, $bal, $e, $f, $jrn, $p_array, Acc_Ledger\array_cat(), and jrn.

    {
        if ( empty($p_array) )
        {
            $bal->jn=null;
            return;
        }
        /* get the list of jrn of the cat. */

        $array=Acc_Ledger::array_cat();
        $jrn=array();
        for ($e=0;$e<count($array);$e++)
        {
            if ( isset($p_array[$e]))
            {
                $t_a=$this->db->get_array('select jrn_def_id from jrn_def where jrn_def_type=$1',array($array[$e]['cat']));
                for ( $f=0;$f < count($t_a);$f++) $this->jrn[]=$t_a[$f]['jrn_def_id'];
            }
        }

    }
static Acc_Balance::test_me ( ) [static]

Definition at line 273 of file class_acc_balance.php.

References $cn, $g_user, Acc_Balance(), and id.

    {
        require 'class_user.php';
        global $g_user;
        $cn=new Database(dossier::id());
        $g_user=new User($cn);
        $a=new Acc_Balance($cn);
        $a->get_row(163, 175, 1);
        var_dump($a);
    }

Field Documentation

Acc_Balance::$db

Definition at line 30 of file class_acc_balance.php.

Acc_Balance::$from_poste

from_poste filter on the post

Definition at line 33 of file class_acc_balance.php.

Referenced by Acc_Balance().

Acc_Balance::$jrn

< row for ledger idx of a table of ledger create by user->get_ledger

Definition at line 32 of file class_acc_balance.php.

Referenced by filter_cat().

Acc_Balance::$row

< database connection

Definition at line 31 of file class_acc_balance.php.

Acc_Balance::$to_poste

to_poste filter on the post

Definition at line 34 of file class_acc_balance.php.

Referenced by Acc_Balance().

Acc_Balance::$unsold

Definition at line 35 of file class_acc_balance.php.

Referenced by Acc_Balance().


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations