This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom chart | |
*/ | |
Chart.types.Doughnut.extend({ | |
name: "PtgDoughnut", | |
// Check if we need to extend the scale | |
initialize: function(data){ | |
this.options.onAnimationProgress = function(easeDecimal){ | |
this.drawPercentage((easeDecimal * this.segments[0].value).toFixed(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Docnet; | |
class LazyDB | |
{ | |
protected $obj_db = NULL; | |
protected $obj_db_settings = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Define our Model Schema | |
$obj_book_schema = (new GDS\Schema('Book')) | |
->addString('title') | |
->addString('author') | |
->addString('isbn', TRUE) | |
->addDatetime('published', FALSE) | |
->addString('text', FALSE); | |