Beispiel #1
0
 /**
  * install
  *
  * @param array $installData install.json 데이터
  * @return string 문제없으면 "success" 출력한다.
  */
 public function install($installData)
 {
     $query = Spawn::arrayToCreateTableQuery(array('tableName' => Spawn::getTableName($this->name), 'fields' => $installData));
     return Spawn::action($query);
 }
Beispiel #2
0
 /**
  * install
  *
  * @param array $installData install.json 데이터
  * @return string 문제없으면 "success" 출력한다.
  */
 public function install($installData)
 {
     $query = Spawn::arrayToCreateTableQuery(array('tableName' => __dbPrefix__ . $this->name, 'fields' => $installData));
     return Spawn::action($query);
 }
Beispiel #3
0
 /**
  * install
  *
  * @param array $installData install.json 데이터
  * @return string 문제없으면 "success" 출력한다.
  */
 public function install($installData)
 {
     Util::createDirectory(__GOOSE_PWD__ . $this->set['upPath_upload'], 0777);
     Util::createDirectory(__GOOSE_PWD__ . $this->set['upPath_original'], 0777);
     Util::createDirectory(__GOOSE_PWD__ . $this->set['upPath_make'], 0777);
     $query = Spawn::arrayToCreateTableQuery(array('tableName' => __dbPrefix__ . $this->name . '_tmp', 'fields' => $installData['field_tmp']));
     $queryResult = Spawn::action($query);
     $query2 = Spawn::arrayToCreateTableQuery(array('tableName' => __dbPrefix__ . $this->name, 'fields' => $installData['field']));
     $query2Result = Spawn::action($query2);
     if ($queryResult == 'success' && $query2Result == 'success') {
         return 'success';
     } else {
         return $queryResult . ', ' . $query2Result;
     }
 }