HomeDeveloperClass

Class

Custom class is feature which can be used write own logic which has more complexity. As you create custom class it comes with default function default_init().

Base Class

class sample_class
{
public $record_id = null;
public $object_unique_id = null;
public $record_array = null;

//This is the necessary function
public function default_init($data_array)
{
$this->record_id = $data_array["record_id"];
$this->object_unique_id = $data_array["object_unique_id"];
$this->record_array = $data_array;
}
}

Articles

Was this article helpful to you? Yes No