Ejemplo n.º 1
0
 public function __construct($input)
 {
     if (filter_var($input, FILTER_VALIDATE_URL) || is_file($input)) {
         $this->data = file_get_contents($input);
         $this->source["source"] = $input;
         $this->source["info"] = pathinfo($input);
         $this->source["info"]["size"] = strlen($this->data);
         $this->mode = $this->data != "false" ? "read" : "write";
         if (MODE === "dev") {
             Reporting::notify($input . "|" . strlen($this->data), "info");
             Reporting::dump($this->data, "info");
         }
     }
 }
Ejemplo n.º 2
0
<?php

include "bootstrap.php";
$harmony = new Harmony("C", "minor");
foreach ($harmony->chords as $chord) {
    Reporting::notify($chord->name);
    Reporting::dump($chord->notes);
}