Skip to content
Snippets Groups Projects
Commit e9564375 authored by Adrien Faveraux's avatar Adrien Faveraux
Browse files

Entity meta constructor php7

parent 412980d7
No related branches found
No related tags found
No related merge requests found
......@@ -34,12 +34,19 @@ abstract class EntityMeta{
protected $ownerFields;
protected $moduleFields = null;
protected function EntityMeta($webserviceObject,$user){
$this->webserviceObject = $webserviceObject;
protected function __construct($webserviceObject,$user)
{
$this->webserviceObject = $webserviceObject;
$this->objectName = $this->webserviceObject->getEntityName();
$this->objectId = $this->webserviceObject->getEntityId();
$this->user = $user;
}
protected function EntityMeta($webserviceObject,$user){
// PHP4-style constructor.
// This will NOT be invoked, unless a sub-class that extends `foo` calls it.
// In that case, call the new-style constructor to keep compatibility.
self::__construct($webserviceObject,$user);
}
public function getEmailFields(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment