当前位置: 首页>>代码示例>>PHP>>正文


PHP Kint::dump方法代码示例

本文整理汇总了PHP中Kint::dump方法的典型用法代码示例。如果您正苦于以下问题:PHP Kint::dump方法的具体用法?PHP Kint::dump怎么用?PHP Kint::dump使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Kint的用法示例。


在下文中一共展示了Kint::dump方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sandbox

 public static function sandbox()
 {
     // Testaa koodiasi täällä
     // Kint-luokan dump-metodi tulostaa muuttujan arvon
     $m = Teammember::findByBoth(1, 1);
     Kint::dump($p);
 }
开发者ID:Jonharju,项目名称:Tsoha-Bootstrap,代码行数:7,代码来源:hello_world_controller.php

示例2: store

 public static function store()
 {
     self::check_logged_in();
     $params = $_POST;
     if (empty($_POST['projects'])) {
         $errors[] = 'Select at least one project!';
         $projects = '';
     } else {
         $projects = $_POST['projects'];
     }
     $attributes = array('description' => $params['description'], 'priority' => $params['priority'], 'status' => 0, 'projectids' => $projects);
     $task = new Task($attributes);
     //$errors = $task->errors(); // Deprecated: Switched to valitron. Calls all validators
     $errors = $task->validateTask();
     // Valitron takes care of putting all errors in one array
     //Kint::dump($params); // Debug, comment out Redirect if used!
     //Kint::dump($task);
     if (count($errors) == 0) {
         $task->save();
         // Tell task-model to save this object to DB
         foreach ($projects as $project) {
             Project::addTask($task->id, $project);
             // We don't know the id before it is saved!
             Project::updateCount($project);
         }
         Redirect::to('/task/' . $task->id, array('message' => 'Task added to database!'));
     } else {
         Kint::dump($errors);
         $projects = Project::all();
         Kint::dump($attributes);
         Kint::dump($projects);
         View::make('task/new.html', array('errors' => $errors, 'attributes' => $attributes, 'projects' => $projects));
     }
 }
开发者ID:rubinju,项目名称:Todolist,代码行数:34,代码来源:tasks_controller.php

示例3: show

 public static function show($id)
 {
     $reader = Reader::find($id);
     $bookCount = Book::getNumberOfBooksByReader($id);
     Kint::dump($bookCount);
     View::make('reader/show_reader.html', array('reader' => $reader, 'bookCount' => $bookCount));
 }
开发者ID:samiahl,项目名称:Tsoha-Bootstrap,代码行数:7,代码来源:reader_contoller.php

示例4: showList

 public function showList()
 {
     $imageService = new ImageService();
     $images = $imageService->getAllImages();
     \Kint::dump($images);
     $this->slim->render('gallery/list.phtml', ['images' => $images]);
 }
开发者ID:Thruio,项目名称:TigerSampleApp,代码行数:7,代码来源:GalleryController.php

示例5: sandbox

 public static function sandbox()
 {
     // Testaa koodiasi täällä
     $wokki = new Resepti(array('ruokalaji' => '', 'annosmaara' => ''));
     $errors = $wokki->errors();
     Kint::dump($errors);
 }
开发者ID:etfairies,项目名称:E-keittokirja,代码行数:7,代码来源:hello_world_controller.php

示例6: forgot

 public function forgot($usuario)
 {
     try {
         $this->load->library('email');
         $data['errores'] = false;
         Kint::dump();
         if ($this->email->valid_email($usuario['email'])) {
             echo 'valido email OKA';
             die;
             $query = $this->db->query("SELECT u.* FROM usuarios u WHERE u.estado_usuario ' AND email = " . $this->db->escape($usuario['email']));
             if ($query->num_rows() == 1) {
                 $usuario = $query->row_array();
                 $newData = $this->cambiarClave($usuario);
                 $usuario['clave'] = $newData['clave'];
                 $data['usuario'] = $usuario;
             } else {
                 $data['errores'] = true;
                 $data['noExiste'] = true;
             }
         } else {
             echo 'no valido el mail';
             $data['errores'] = true;
             $data['email'] = true;
         }
         return $data;
     } catch (Exception $e) {
         $data['errores'] = true;
         return $data;
     }
 }
开发者ID:jpasosa,项目名称:global,代码行数:30,代码来源:Login_model.php

示例7: sandbox

 public static function sandbox()
 {
     // Testaa koodiasi täällä
     $Sven = new Hero(array('name' => 's', 'primaryattribute' => 'jäbäys', 'damagetype' => 'Physical', 'primaryrole' => 'core', 'attacktype' => 'Melee'));
     $errors = $Sven->errors();
     Kint::dump($errors);
 }
开发者ID:sasumaki,项目名称:Tsoha-Bootstrap,代码行数:7,代码来源:hello_world_controller.php

示例8: sandbox

 public static function sandbox()
 {
     $first = Recipe::find(1);
     $recipes = Recipe::all();
     Kint::dump($recipes);
     Kint::dump($first);
 }
开发者ID:emivo,项目名称:Tsoha-Bootstrap,代码行数:7,代码来源:sandbox_controller.php

示例9: save

 public function save()
 {
     $pdo_connection = DB::connection();
     $success = true;
     //the begin of transaction
     $pdo_connection->beginTransaction();
     try {
         $query = $pdo_connection->prepare("INSERT INTO saalistieto (pvm, kellonaika," . " kalalaji, lkm, pituus, paino, vesisto, paikka, tuulenvoimakkuus," . " tuulensuunta, ilmanlampo, vedenlampo, pilvisyys, huomiot," . " saaliskuva, pyydys) VALUES(:pvm, NULLIF(:aika,'')::time, :laji, :lkm," . " NULLIF(:pituus,'')::numeric, NULLIF(:paino,'')::numeric, :vesisto," . " :paikka, :tuulenVoima, :tuulenSuunta," . " NULLIF(:ilmanLampo,'')::integer, NULLIF(:vedenLampo,'')::integer, :pilvisyys," . " :huomiot, :kuva, NULLIF(:pyydys,'default')::integer) RETURNING saalisid");
         $query->execute(array('pvm' => $this->date, 'aika' => $this->time, 'laji' => $this->species, 'lkm' => $this->count, 'pituus' => $this->length, 'paino' => $this->weight, 'vesisto' => $this->water_sys, 'paikka' => $this->location, 'tuulenVoima' => $this->wind_speed, 'tuulenSuunta' => $this->wind_dir, 'ilmanLampo' => $this->air_temp, 'vedenLampo' => $this->water_temp, 'pilvisyys' => $this->cloudiness, 'huomiot' => $this->notes, 'kuva' => $this->picture_url, 'pyydys' => $this->trap_id));
         $resultRow = $query->fetch();
         $this->catch_id = $resultRow['saalisid'];
         $catchers;
         $username = array($_SESSION['user']);
         if (isset($this->friends)) {
             $catchers = array_merge($username, $this->friends);
         } else {
             $catchers = $username;
         }
         $query_2 = $pdo_connection->prepare("INSERT INTO pyydystaja VALUES(" . ":kalastaja, :saalisid)");
         foreach ($catchers as $catcher) {
             $query_2->execute(array('kalastaja' => $catcher, 'saalisid' => $this->catch_id));
         }
     } catch (PDOException $e) {
         $success = false;
         Kint::dump($e);
         Kint::trace();
     }
     //end of transaction
     if (!$success) {
         $pdo_connection->rollBack();
     } else {
         $pdo_connection->commit();
     }
 }
开发者ID:ppnauman,项目名称:Tsoha-Bootstrap,代码行数:34,代码来源:catch.php

示例10: sandbox

 public static function sandbox()
 {
     $postedTo1 = ForumUser::findPostedTo(1);
     $postedTo2 = ForumUser::findPostedTo(2);
     Kint::dump($postedTo1);
     Kint::dump($postedTo2);
 }
开发者ID:CarnivoreBarnacle,项目名称:Forum,代码行数:7,代码来源:main_controller.php

示例11: update

 public function update()
 {
     $query = DB::connection()->prepare('UPDATE Task SET (description, status, priority, projectids) = (:description, :status, :priority, :projectids) WHERE id = :id');
     Kint::dump($query);
     $query->execute(array('id' => $this->id, 'description' => $this->description, 'status' => $this->status, 'priority' => $this->priority, 'projectids' => implode(",", $this->projectids)));
     $row = $query->fetch();
     // row is false if db is angry, great for debugging
 }
开发者ID:rubinju,项目名称:Todolist,代码行数:8,代码来源:task.php

示例12: sandbox

 public static function sandbox()
 {
     $skyrim = Astiat::find(1);
     $astia = Astiat::all();
     // Kint-luokan dump-metodi tulostaa muuttujan arvon
     Kint::dump($astia);
     Kint::dump($skyrim);
 }
开发者ID:hannerasa,项目名称:Tsoha-Bootstrap,代码行数:8,代码来源:hello_world.php

示例13: sandbox

 public static function sandbox()
 {
     // Testaa koodiasi täällä
     //$logged_user = self::get_user_logged_in();
     $params = $_POST;
     Kint::dump($params);
     View::make('notimplemented.html');
 }
开发者ID:juhapekkamoilanen,项目名称:Tsoha-Bootstrap,代码行数:8,代码来源:hello_world_controller.php

示例14: sandbox

 public static function sandbox()
 {
     // Testaa koodiasi täällä
     //$catch_1 = CatchModel::find(1);
     $catch = new CatchModel(array('kalalaji' => "lahna", 'lkm' => '0', 'vedenLampo' => '-3'));
     $errors = $catch->errors();
     Kint::dump($errors);
 }
开发者ID:ppnauman,项目名称:Tsoha-Bootstrap,代码行数:8,代码来源:hello_world_controller.php

示例15: updateCount

 public static function updateCount($id)
 {
     $count = self::taskcount($id);
     Kint::dump($count);
     $query = DB::connection()->prepare('UPDATE Project SET taskcount = :taskcount WHERE id = :id');
     $query->execute(array('id' => $id, 'taskcount' => $count));
     $row = $query->fetch();
 }
开发者ID:rubinju,项目名称:Todolist,代码行数:8,代码来源:project.php


注:本文中的Kint::dump方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。