class User extends \atk4\data\Model
{
function init() {
parent::init();
$this->addField('name');
$this->addField('email');
}
}
View en.php
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 | |
// Automatically generated by lokalise.com for atk4\data (en) | |
namespace atk4\data\locale; | |
class En { | |
const language='en'; | |
const strings=[ | |
'Field requires array for defaults' => 'Field requires array for defaults', |
View Volatile.php
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 saasty\View; | |
/** | |
* A very basic view which may contain other elements that are likely to throw exception during render. In which case, | |
* the exception will be contained within the view and won't break any of the other UI. | |
*/ | |
class Volatile extends \atk4\ui\View | |
{ | |
public $fx = null; | |
function set($cb = null, $arg2 = null) { |
View rstgenerator.py
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
#!/usr/bin/env python3 | |
""" | |
This script converts the doxygen XML output, which contains the API description, | |
and generates reStructuredText suitable for rendering with the sphinx PHP | |
domain. | |
""" | |
from collections import OrderedDict | |
import xml.etree.ElementTree as ET | |
import os |
View forgot.php
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 saasty; | |
use atk4\ui\Form; | |
use saasty\Model\User; | |
chdir('..'); | |
require '../vendor/autoload.php'; |
View flyout.js
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
import $ from "jquery"; | |
import debounce from 'debounce'; | |
/** | |
* Singleton class. | |
* Flyout needs to be reload to display different | |
* content. This service will take care of this. | |
* | |
*/ | |
class FlyoutService { |
View gist:d4aace6efbad15f6cdf8b339f91a87e5
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
in your test.php file: | |
<?php | |
require '../vendor/autoload.php'; // <-- if file is inside demo, then ../../vendor.... | |
$app = new \saasty\frontend\App('useLayout'=> new \atk4\ui\Layout\Generic([ | |
'defaulTemplate'=>'./mylayout.html | |
])]); | |
View movtogif.sh
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
#!/bin/bash | |
# Don't install or buy crappy gif makers. Here is the magic file: | |
palette="/tmp/palette.png" | |
filters="fps=10,scale=800:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
View data.sql
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
DROP TABLE IF EXISTS `group`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `group` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; |
View includes.html
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.css"/> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script> | |
<script src="https://cdn.rawgit.com/mdehoog/Semantic-UI-Calendar/0.0.8/dist/calendar.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/mdehoog/Semantic-UI-Calendar/0.0.8/dist/calendar.css"/> | |
<script src="https://cdn.rawgit.com/atk4/ui/1.3.0/public/atk4JS.min.js"></script> | |
<script src="https://cdn.rawgit.com/atk4/ui/1.3.0/public/agileui.js"></script> |
View Model.md
NewerOlder