コード例 #1
0
ファイル: EditCommand.php プロジェクト: civicrm/cv
 public function __construct($name = NULL)
 {
     parent::__construct($name);
     // TODO: Change the autogenerated stub
     $this->fs = new Filesystem();
     $this->editor = new CliEditor();
     $this->editor->setValidator(function ($file) {
         $data = json_decode(file_get_contents($file));
         if ($data === NULL) {
             return array(FALSE, '// The JSON document was malformed. Please resolve syntax errors and then remove this message.');
         } else {
             return array(TRUE, '');
         }
     });
 }
コード例 #2
0
ファイル: ApiCommand.php プロジェクト: civicrm/cv
 /**
  * @param string|null $name
  */
 public function __construct($name = NULL)
 {
     $this->defaults = array('version' => 3);
     parent::__construct($name);
 }
コード例 #3
0
ファイル: FillCommand.php プロジェクト: civicrm/cv
 public function __construct($name = NULL)
 {
     parent::__construct($name);
     $this->defaults = array('ADMIN_EMAIL' => '*****@*****.**', 'ADMIN_PASS' => 't0ps3cr3t', 'ADMIN_USER' => 'admin', 'CIVI_CORE' => '', 'CIVI_DB_DSN' => 'mysql://*****:*****@dbHost/dbName?new_link=true', 'CIVI_FILES' => '', 'CIVI_SETTINGS' => '', 'CIVI_SITE_KEY' => '', 'CIVI_TEMPLATEC' => '', 'CIVI_UF' => '', 'CIVI_URL' => '', 'CIVI_VERSION' => '', 'CMS_DB_DSN' => 'mysql://*****:*****@dbHost/dbName?new_link=true', 'CMS_ROOT' => '', 'CMS_TITLE' => 'Untitled installation', 'CMS_URL' => '', 'CMS_VERSION' => '', 'DEMO_EMAIL' => '*****@*****.**', 'DEMO_PASS' => 't0ps3cr3t', 'DEMO_USER' => 'demo', 'IS_INSTALLED' => '1', 'SITE_TOKEN' => md5(openssl_random_pseudo_bytes(256)), 'SITE_TYPE' => '', 'TEST_DB_DSN' => 'mysql://*****:*****@dbHost/dbName?new_link=true');
 }