...

View Full Version : variable in class



zodehala
03-17-2010, 10:37 AM
following is class.php

<?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
$a ="xxxxx";
$b="yyyy";
$c = "zzzz";
?>

for example


<?php
class pagination{


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

?>

MattF
03-17-2010, 11:13 AM
The question is?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum