Beispiel #1
0
 /**
  * Show the end user what we're intending to do
  *
  * @access public
  * @return string
  */
 public function ShowIntentions(\Bytes\GlobalScope $GlobalScope) : string
 {
     /* ------------------------------------------------------------------------------------------------------
           CREATE VISUAL
        ------------------------------------------------------------------------------------------------------ */
     $Visual = $this->Visual('InstallerOutput');
     /* ------------------------------------------------------------------------------------------------------
           OUTPUT
        ------------------------------------------------------------------------------------------------------ */
     if ($GlobalScope->GET('Confirm') === '1') {
         $Visual->Embed('Output', $this->Model('DatabaseQueryRunner')->RunQueries($this->GetIntentions()['Queries']));
     } else {
         $Output = $this->GetIntentions();
         $Visual->Embed('Output', $Output['Queries']);
         $Visual->Embed('Descriptions', $Output['Descriptions']);
     }
     /* ------------------------------------------------------------------------------------------------------
           RETURN
        ------------------------------------------------------------------------------------------------------ */
     return $Visual->Render();
 }
Beispiel #2
0
 /**
  * Ajax GET
  *
  * @access public
  * @return array
  */
 public function AjaxGET(\Bytes\GlobalScope $Data) : array
 {
     /* ------------------------------------------------------------------------------------------------------
           RETURN
        ------------------------------------------------------------------------------------------------------ */
     return ['Return' => 'GET ' . $Data->GET('Input')];
 }