Permalink
Browse files

PHP7対応

  • Loading branch information...
yama committed Mar 24, 2016
1 parent fbaf06d commit b4d709792c24ff1cfb268561bcdd71da1f83be19
@@ -11,7 +11,7 @@ class synccache {
var $config = array();
var $cacheRefreshTime;
function synccache()
function __construct()
{
if(empty($this->target)) $this->target = 'pagecache,sitecache';
if(defined('MODX_BASE_PATH')) $this->cachePath = MODX_BASE_PATH . 'assets/cache/';
@@ -4,7 +4,7 @@ class ContextMenu {
var $i;
function ContextMenu($id='',$width=120,$visible=false) {
function __construct($id='',$width=120,$visible=false) {
global $ContextMenuCnt;
if(!$ContextMenuCnt) $ContextMenuCnt = 0;
$ContextMenuCnt++;
@@ -53,7 +53,7 @@ class DataGrid {
var $src_encode;
var $detectHeader;
function DataGrid($id='',$ds='',$pageSize=20,$pageNumber=-1) {
function __construct($id='',$ds='',$pageSize=20,$pageNumber=-1) {
global $modx, $__DataGridCnt;
// set id
@@ -27,7 +27,7 @@ class DataSetPager {
var $selPageStyle;
var $selPageClass;
function DataSetPager($id,$ds,$pageSize=10,$pageNumber=-1) {
function __construct($id,$ds,$pageSize=10,$pageNumber=-1) {
global $_PAGE; // use view state object
global $__DataSetPagerCnt;
@@ -5,7 +5,7 @@ class errorHandler{
var $errorcode;
var $errors = array();
function errorHandler()
function __construct()
{
global $_lang;
@@ -6,7 +6,7 @@ class DocAPI {
var $mode;
function DocAPI()
function __construct()
{
}
@@ -14,7 +14,7 @@ class EXPORT_SITE
var $maxtime;
var $lock_file_path;
function EXPORT_SITE()
function __construct()
{
global $modx;
@@ -32,7 +32,7 @@ class MakeTable {
var $selectedValues;
var $pageLimit;
function MakeTable() {
function __construct() {
global $modx;
$this->fieldHeaders = array();
@@ -14,7 +14,7 @@ class ManagerAPI {
var $action; // action directive
function ManagerAPI(){
function __construct(){
global $action;
$this->action = $action; // set action directive
}
@@ -15,7 +15,7 @@ class MODIFIERS {
var $value;
var $opt;
function MODIFIERS()
function __construct()
{
global $modx;
@@ -22,7 +22,7 @@ class MODxMailer extends PHPMailer
var $mb_language = false;
var $encode_header_method = null;
function MODxMailer()
function __construct()
{
global $modx;
@@ -5,7 +5,7 @@ class REVISION
{
var $hasDraft;
function REVISION()
function __construct()
{
if(!defined('MODX_BASE_PATH')) return false;
}
@@ -3,7 +3,7 @@
$this->sub = new SubParser();
class SubParser {
function SubParser()
function __construct()
{
}
function sendmail($params=array(), $msg='')
@@ -40,7 +40,7 @@ function set_parser_mode() {
}
class MODX_INIT {
function MODX_INIT() {
function __construct() {
}
function init_mgr() {
@@ -21,7 +21,7 @@ class Mysqldumper {
var $table_prefix;
var $contentsOnly;
function Mysqldumper() {
function __construct() {
global $modx;
// Don't drop tables by default.
$this->database_server = $modx->db->config['host']==='127.0.0.1' ? 'localhost' : $modx->db->config['host'];
@@ -36,7 +36,7 @@ class Paging {
var $int_cur_position;// Current position in recordset
var $str_ext_argv; // Extra argv of query string
function Paging( $int_nbr_row, $int_cur_position, $int_num_result, $str_ext_argv = "" ){
function __construct( $int_nbr_row, $int_cur_position, $int_num_result, $str_ext_argv = "" ){
$this->script_name = $_SERVER['SCRIPT_NAME'];
$this->int_nbr_row = $int_nbr_row;
$this->int_num_result = $int_num_result;

0 comments on commit b4d7097

Please sign in to comment.