/** * Instantiate JUcmContent. * * @param JTableInterface $table The table object * @param string $alias The type alias * @param JUcmType $type The type object * * @since 3.1 */ public function __construct(JTableInterface $table = null, $alias = null, JUcmType $type = null) { parent::__construct($alias, $type); if ($table) { $this->table = $table; } else { $tableObject = json_decode($this->type->type->table); $this->table = JTable::getInstance($tableObject->special->type, $tableObject->special->prefix, $tableObject->special->config); } }