PHP Classes

JSON Schedule creator: Manage event time schedules stored in JSON files

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 322 All time: 7,218 This week: 455Up
Version License PHP version Categories
json-schedule 1.8GNU General Publi...5.4HTML, PHP 5, Time and Date, Databases, F...
Description 

Author

This class can manage event time schedules stored in JSON files.

It can store the start, end and description of events in JSON files.

The class can also retrieve the details of all event files and display them in a HTML table.

Picture of Daniel Alan Guerrero Matamoros
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

Example

<?php

require_once("Schedule.php");

if(isset(
$_POST["action"])){
   
   
$Y = $_POST["Y"];
   
$n = $_POST["n"];
   
$j = $_POST["j"];
   
   
$inicio = $_POST["Start"];
   
$desc = $_POST["Desc"];
   
$fin = $_POST["Fin"];
   
    switch(
$_POST["action"]){
       
        case
"Create":
           
$c = new Schedule($Y, $n, $j);
           
$c->create($Y, $n, $j);
            echo
"New schedule created";
        break;
       
        case
"Add":
           
$c = new Schedule($Y, $n, $j);
            if(
$c->getData($Y, $n, $j)){
               
$c->add($inicio, $desc, $fin);
                echo
"New entry added";
            }
        break;
       
        case
"See":
           
$c = new Schedule($Y, $n, $j);
            if(
$c->getData($Y, $n, $j)){
               
$c->see();
            } else {
                echo
"Date does not exist";
            }
        break;
       
        default:
            echo
"Command error";
       
    }
   
}

?>











  Files folder image Files (4)  
File Role Description
Files folder imageexample (4 files)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:322
This week:0
All time:7,218
This week:455Up