src/Controller.php
final public function __setData($incomingData)
    {
        $this->incomingData = $incomingData;
        
        // Set the data from the WordPress post if singular to $this->data
        $this->__setDataFromPost();

        // Set the data from Advanced Custom Fields to $this->data
        $this->__setDataFromModuleAcf();

        // Set incoming filter data from Sage to App before Debugger
        $this->__setDataFromFilter();

        // Set the public methods from the class to $this->methods
        $this->__setDataFromMethods();

        // Set debugger data first to use only the raw data from the Controller
        $this->__setBladeData();

        // Set app data to $this->data['__app'] or merge with current data
        $this->__setAppData();

        // Set tree data to $this->data['__tree'] or merge with current data
        $this->__setTreeData();
    }
final public function __setData($incomingData)
    {
        $this->incomingData = $incomingData;
        
        // Set the data from the WordPress post if singular to $this->data
        $this->__setDataFromPost();

        // Set the data from Advanced Custom Fields to $this->data
        $this->__setDataFromModuleAcf();

        // Set incoming filter data from Sage to App before Debugger
        $this->__setDataFromFilter();

        // Set the public methods from the class to $this->methods
        $this->__setDataFromMethods();

        // Set debugger data first to use only the raw data from the Controller
        $this->__setBladeData();

        // Set app data to $this->data['__app'] or merge with current data
        $this->__setAppData();

        // Set tree data to $this->data['__tree'] or merge with current data
        $this->__setTreeData();
    }
final public function __setData ( $ incomingData ) { $ this -> incomingData = $ incomingData ; // Set the data from the WordPress post if singular to $this->data $ this -> __setDataFromPost ( ) ; // Set the data from Advanced Custom Fields to $this->data $ this -> __setDataFromModuleAcf ( ) ; // Set incoming filter data from Sage to App before Debugger $ this -> __setDataFromFilter ( ) ; // Set the public methods from the class to $this->methods $ this -> __setDataFromMethods ( ) ; // Set debugger data first to use only the raw data from the Controller $ this -> __setBladeData ( ) ; // Set app data to $this->data['__app'] or merge with current data $ this -> __setAppData ( ) ; // Set tree data to $this->data['__tree'] or merge with current data $ this -> __setTreeData ( ) ; }
Set Controller Data

Set the Controller raw data for this Controller
@return $this
Set Controller Data