<?php
define('GOLF_PLATFORM', 333);
/**
* this is the CHILD class
*/
class CustomCourse extends BaseContact/*BaseCourse*/ {
public function toArray($platform = GOLF_PLATFORM) {
$values = parent::toArray(platform);
// do some more with $values here
return $values;
}
}
/**
* this is the PARENT class
*/
class BaseContact /*extends Course*/ {
public function toArray($platform = GOLF_PLATFORM) {
$values = array();
$values['user_id'] = $this->getUserId();
// do some more in here
return $values;
}
}
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/GEdpI on line 10
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/GEdpI on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/GEdpI on line 10
Process exited with code 255.