Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2007
    Posts
    269
    Thanks
    28
    Thanked 0 Times in 0 Posts

    variable in class

    following is class.php
    PHP Code:
    <?php
    class pagination{
    /*
    Script Version: 0.4
    Author: Victor De la Rocha
    Author URI: http://www.mis-algoritmos.com
    */        

            /*Default values*/
            
    var $total_pages = -1;//items
            
    var $limit null;
            var 
    $target ""
            var 
    $page 1;
            var 
    $adjacents 2;
            var 
    $showCounter false;
            var 
    $className "pagination";
            var 
    $parameterName ="page";
            var 
    $urlF false;//urlFriendly

            /*Buttons next and previous*/
            
    var $nextT "Next";
            var 
    $nextI ""//►
            
    var $prevT "Previous";
            var 
    $prevI ""//◄

    //other codes
    }
    like "page" ,"next", and "previous" words read from a file for example

    x.php
    PHP Code:
    <?php
    $a 
    ="xxxxx";
    $b="yyyy";
    $c "zzzz";
    ?>
    for example
    PHP Code:
    <?php
    class pagination{


            
    /*Buttons next and previous*/
            
    var $nextT $a;
            var 
    $nextI $b;
            var 
    $prevT =$c;
            var 
    $prevI $d;

    ?>

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    The question is?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •