Exemplo n.º 1
0
 /**
  * exec method
  *
  * @param mixed $cmd
  * @param mixed $out null
  * @return void
  * @access protected
  */
 protected function _exec($cmd, &$out = array())
 {
     MiInstall::_progress($cmd, '  ');
     if (defined('CAKE_SHELL') && CAKE_SHELL) {
         system($cmd, $return);
         return $return;
     }
     MiInstall::_progress($out, '    ');
     if (!class_exists('Mi')) {
         App::import('Vendor', 'Mi.Mi');
     }
     Mi::exec($cmd, $out);
 }
Exemplo n.º 2
0
 /**
  * exec method
  *
  * @param mixed $cmd
  * @param mixed $out null
  * @return true on success, false on failure
  * @access protected
  */
 protected function _exec($cmd, &$out = null)
 {
     if (!class_exists('Mi')) {
         APP::import('Vendor', 'Mi.Mi');
     }
     return Mi::exec($cmd, $out);
 }
Exemplo n.º 3
0
 /**
  * exec method
  *
  * @param mixed $cmd
  * @param mixed $out null
  * @return void
  * @access protected
  */
 protected static function _exec($cmd, &$out = null)
 {
     if (!class_exists('Mi')) {
         App::uses('Mi', 'Mi.Vendor');
     }
     return Mi::exec($cmd, $out);
 }