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  
Name: Daniel Alan Guerrero ... is available for providing paid consulting. Contact Daniel Alan Guerrero ... .
Classes: 7 packages by
Country: Mexico Mexico
Age: 29
All time rank: 197121 in Mexico Mexico
Week rank: 192 Up4 in Mexico Mexico Up
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)

  Files folder image Files (4)  /  example  
File Role Description
  Accessible without login Plain text file controller.php Example Controller for send and receive data
  Accessible without login Plain text file index.html Data Index of the example to display a possible way to receive data
  Plain text file Schedule.php Class Example class formated for JQueryM
  Accessible without login Plain text file sys.js Data JS for send and receive data from the controller.php

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