PHP Classes

File: fwphp/glomodul/z_examples/todo_csv_js/todolist/list.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/todo_csv_js/todolist/list.php   Download  
File: fwphp/glomodul/z_examples/todo_csv_js/todolist/list.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/todo_csv_js/todolist/list.php
Date: 1 year ago
Size: 441 bytes
 

Contents

Class file image Download
<?php
/*
 *
 */

namespace TodoList;

use \
TodoList\Dao\TodoDao;
use \
TodoList\Dao\TodoSearchCriteria;
use \
TodoList\Util\Utils;
use \
TodoList\Validation\TodoValidator;

$status = Utils::getUrlParam('status');
TodoValidator::validateStatus($status);

$dao = new TodoDao();
$search = (new TodoSearchCriteria())
        ->
setStatus($status);

// data for template
$title = Utils::capitalize($status) . ' TODOs';
$todos = $dao->find($search);