repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Controller/Validator/Basic.php | lib/Controller/Validator/Basic.php | <?php
class Controller_Validator_Basic extends Controller_Validator_Abstract
{
public function init()
{
parent::init();
$this->alias = array_merge(
$this->alias,
array(
'same' => 'eq',
'different' => 'ne',
)
);
}
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Controller/Validator/MB.php | lib/Controller/Validator/MB.php | <?php
namespace romaninsh\validation;
/**
* Validator rules for multi-byte Functions.
*
* $model->add('Controller_Validator_MB',array(
* 'encoding'=>'UTF-8'))
* ->is();
*
* org
*
* $model->validator->add('Controller_Validator_MB',array(
* 'encoding'=>'UTF-8'))
* ->is();
*
* Q: W... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Grid/Advanced.php | lib/Grid/Advanced.php | <?php
/**
* This is a Basic Grid implementation, which produces fully
* functional HTML grid capable of filtering, sorting, paginating
* and using multiple column formatters.
*
* Use:
* $grid=$this->add('Grid');
* $grid->setModel('User');
*/
class Grid_Advanced extends Grid_Basic
{
/** Sorting */
publ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | true |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Grid/Basic.php | lib/Grid/Basic.php | <?php
/**
* This is a Basic Grid implementation, which produces fully
* functional HTML grid capable of filtering, sorting, paginating
* and using multiple column formatters.
* Basic Grid no longer implements the column formatters, instead
* they have been moved into Grid_Advanced.
*
* Use:
* $grid=$this->add(... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Hint.php | lib/Form/Hint.php | <?php
/**
* Undocumented
*/
class Form_Hint extends View_HtmlElement
{
public function init()
{
parent::init();
$this->setElement('p');
$this->addClass('atk-text-dimmed');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Plain.php | lib/Form/Plain.php | <?php
/**
* Implementation of plain HTML-only form. Does not support submission or anything
*/
class Form_Plain extends HtmlElement
{
public function init()
{
parent::init();
$this->setElement('form');
}
public function addInput($type, $name, $value, $tag = 'Content')
{
/**... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Basic.php | lib/Form/Basic.php | <?php
/**
* This class implements generic form, which you can actually use without
* redeclaring it. Just add fields, buttons and use execute method.
*
* @author Romans <romans@adevel.com>
* @copyright See file COPYING
*
* @version $Id$
*/
class Form_Basic extends View implements ArrayAccess
{
/*... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Button.php | lib/Form/Button.php | <?php
/**
* Displays flexible button.
*
* @author Romans <romans@adevel.com>
* @copyright See file COPYING
*
* @version $Id$
*/
class Form_Button extends Button
{
/** @var null|bool */
public $no_save = null;
public $label;
public function setLabel($_label)
{
$this->label... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Stacked.php | lib/Form/Stacked.php | <?php
/**
* Undocumented
*/
class Form_Stacked extends Form
{
public function init()
{
parent::init();
}
public function defaultTemplate()
{
return array('form');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field.php | lib/Form/Field.php | <?php
/**
* Implementation of abstract form's field.
*
* @author Romans <romans@adevel.com>
* @copyright See file COPYING
*
* @version $Id$
*/
abstract class Form_Field extends AbstractView
{
/**
* Description of the field shown next to it on the form.
*/
public $error_template; ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Submit.php | lib/Form/Submit.php | <?php
/**
* Displays submit button.
*
* @author Romans <romans@adevel.com>
* @copyright See file COPYING
*
* @version $Id$
*/
class Form_Submit extends Button
{
/** @var null|bool */
public $no_save = null;
public $form;
public function init()
{
parent::init();
$t... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Money.php | lib/Form/Field/Money.php | <?php
/**
* Undocumented.
*/
class Form_Field_Money extends Form_Field_Number
{
public $digits = 2;
public function setDigits($n)
{
$this->digits = $n;
return $this;
}
public function normalize()
{
$v = $this->get();
// remove non-numbers
if ($v !== nul... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Number.php | lib/Form/Field/Number.php | <?php
/**
* Undocumented.
*/
class Form_Field_Number extends Form_Field_Line
{
public function performValidation()
{
parent::performValidation();
$v = $this->get();
if ($v !== null && $v !== '') {
$this->validate('number');
}
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/CheckboxList.php | lib/Form/Field/CheckboxList.php | <?php
/**
* Undocumented.
*/
class Form_Field_CheckboxList extends Form_Field_ValueList
{
/*
* This field will create 2 column of checkbox+labels from defived value
* list. You may check as many as you like and when you save their ID
* values will be stored coma-separated in varchar type field.
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Spinner.php | lib/Form/Field/Spinner.php | <?php
/**
* Undocumented.
*/
class Form_Field_Spinner extends Form_Field_Number
{
public $min = 0;
public $max = 10;
public $step = 1;
public function setStep($n)
{
$this->step = $n;
return $this;
}
public function getInput()
{
$s = $this->name.'_spinner';
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Radio.php | lib/Form/Field/Radio.php | <?php
/**
* Undocumented.
*/
class Form_Field_Radio extends Form_Field_ValueList
{
public function getInput($attr = array())
{
$output = '<div id="'.$this->name.'" class="atk-form-options">';
foreach ($this->getValueList() as $value => $descr) {
if ($descr instanceof AbstractView) ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/JSONArraySelectable.php | lib/Form/Field/JSONArraySelectable.php | <?php
/**
* Creates field as selectable grid. Saves JSON encoded list of ids of related model.
*
* Usage example:
*
* In model define field like:
* $this->addField('products', [
* 'type' => null,
* 'mandatory' => true,
* 'serialize' => 'json',
* 'ui' => [
* 'display' =... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Checkbox.php | lib/Form/Field/Checkbox.php | <?php
/**
* Undocumented.
*/
class Form_Field_Checkbox extends Form_Field
{
public $true_value = true;
public $false_value = false;
public function init()
{
parent::init();
$this->default_value = '';
}
public function setValues($true, $false)
{
$this->true_value = $... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Text.php | lib/Form/Field/Text.php | <?php
/**
* Undocumented.
*/
class Form_Field_Text extends Form_Field
{
public $rows = 5;
public function init()
{
$this->setAttr('rows', $this->rows);
parent::init();
}
public function setRows($n)
{
$this->rows = $n;
$this->setAttr('rows', $n);
return... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Date.php | lib/Form/Field/Date.php | <?php
/**
* Undocumented.
*/
class Form_Field_Date extends Form_Field
{
private $sep = '-';
private function invalid()
{
return $this->displayFieldError('Not a valid date');
}
public function validate()
{
//empty value is ok
if ($this->value == '') {
return... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Time.php | lib/Form/Field/Time.php | <?php
/**
* Undocumented.
*/
class Form_Field_Time extends Form_Field
{
public function getInput($attr = array())
{
return parent::getInput(array_merge(array(
'type' => 'text',
'value' => date(
$this->app->getConfig('locale/time', 'H:i:s'),
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Hidden.php | lib/Form/Field/Hidden.php | <?php
/**
* Undocumented.
*/
class Form_Field_Hidden extends Form_Field
{
public function getInput($attr = array())
{
return parent::getInput(array_merge(
array(
'type' => 'hidden',
),
$attr
));
}
public function render()
{
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Line.php | lib/Form/Field/Line.php | <?php
/**
* Undocumented.
*/
class Form_Field_Line extends Form_Field
{
public function getInput($attr = array())
{
return parent::getInput(array_merge(array('type' => 'text'), $attr));
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Password.php | lib/Form/Field/Password.php | <?php
/**
* Undocumented.
*/
class Form_Field_Password extends Form_Field
{
public function normalize()
{
// user may have entered spaces accidentally in the password field.
// Clean them up.
$this->set(trim($this->get()));
parent::normalize();
}
public function getInpu... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/DateSelector.php | lib/Form/Field/DateSelector.php | <?php
/**
* Date selection control. Consists of checkbox and three comboboxes (dropdown lists of days,
* months and years).
* Unchecking combobox sets value to zero date '0000-00-00' and disables the controls.
* Years list starts from previous year and finishes with next one (three options total) by default.
* It... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/DropDown.php | lib/Form/Field/DropDown.php | <?php
/**
* Undocumented.
*/
class Form_Field_DropDown extends Form_Field_ValueList
{
public $select_menu_options = array();
public function getInput($attr = array())
{
$this->select_menu_options['change'] = $this->js()->trigger('change')->_enclose();
$this->js(true)->selectmenu($this->se... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Upload.php | lib/Form/Field/Upload.php | <?php
/**
* This class is for uploading files. It supports 3 types of upload:
* - regular upload. No javascript is involved. When form is being submitted, data is collected
* - javascript iframe upload. Upon selection of the file, it will start uploading it right away,
* and will display additional file upload f... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/JSONArray.php | lib/Form/Field/JSONArray.php | <?php
/**
* Undocumented.
*/
class Form_Field_JSONArray extends Form_Field_JSON
{
public function normalize()
{
$this->set(json_decode($this->get(), true));
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/ValueList.php | lib/Form/Field/ValueList.php | <?php
/**
* This is abstract class. Use this as a base for all the controls
* which operate with predefined values such as dropdowns, checklists
* etc
*/
abstract class Form_Field_ValueList extends Form_Field
{
// array of available values
public $value_list = array();
// default empty text message
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/JSON.php | lib/Form/Field/JSON.php | <?php
/**
* Undocumented.
*/
class Form_Field_JSON extends Form_Field_Line
{
public function normalize()
{
$this->set(json_decode($this->get()));
}
public function getInput($attr = array())
{
return parent::getInput(array_merge(array(
'value' => json_encode($this->... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/ADDateTimePicker.php | lib/Form/Field/ADDateTimePicker.php | <?php
/**
* Implements a drop-down date without all the
* messiness, assuming that the native values
* always use DateTime class.
*/
class Form_Field_ADDateTimePicker extends Form_Field_ADDatePicker
{
public $format = 'd/m/Y H:i:s';
public function init()
{
parent::init();
$this->js(tr... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Readonly.php | lib/Form/Field/Readonly.php | <?php
/**
* Note: This class extends Form_Field_ValueList not Form_Field, because it
* have to nicely replace Form_Field_ValueList based fields too.
*/
class Form_Field_Readonly extends Form_Field_ValueList
{
public function init()
{
parent::init();
$this->disable();
}
public f... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/ADDatePicker.php | lib/Form/Field/ADDatePicker.php | <?php
/**
* Implements a drop-down date without all the
* messiness, assuming that the native values
* always use DateTime class.
*/
class Form_Field_ADDatePicker extends Form_Field_Line
{
public $options = array();
public $format = 'd/m/Y';
public $format_js = 'dd/mm/yy';
public function init()
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/DatePicker.php | lib/Form/Field/DatePicker.php | <?php
/**
* Text input with Javascript Date picker
* It draws date in locale format (taken from $config['locale']['date'] setting) and stores it in
* MySQL acceptable date format (YYYY-MM-DD).
*/
class Form_Field_DatePicker extends Form_Field_Line
{
public $options = array();
public function init()
{
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/SimpleCheckbox.php | lib/Form/Field/SimpleCheckbox.php | <?php
/**
* Undocumented.
*/
class Form_Field_SimpleCheckbox extends Form_Field
{
public function getInput($attr = array())
{
return parent::getInput(array_merge(
array(
'type' => 'checkbox',
'value' => 'Y',
'checked' => $this->value == 'Y',
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Slider.php | lib/Form/Field/Slider.php | <?php
/**
* Undocumented.
*/
class Form_Field_Slider extends Form_Field_Number
{
public $min = 0;
public $max = 10;
public $step = 1;
public $left = 'Min';
public $right = 'Max';
public function setStep($n)
{
$this->step = $n;
return $this;
}
public function setLa... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Form/Field/Search.php | lib/Form/Field/Search.php | <?php
/**
* Undocumented.
*/
class Form_Field_Search extends Form_Field
{
// WARNING: <input type=search> is safari extention and will not validate as valid HTML
public function getInput($attr = array())
{
return parent::getInput(array_merge(array('type' => 'search'), $attr));
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql.php | lib/DB/dsql.php | <?php
/**
* Implementation of SQL Query Abstraction Layer for Agile Toolkit.
*/
class DB_dsql extends AbstractModel implements Iterator
{
/**
* Data accumulated by calling Definition methods, which is then
* used when rendering.
*
* @var array
*/
public $args = array();
/**
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | true |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/prefixed.php | lib/DB/prefixed.php | <?php
/**
* Undocumented.
*/
class DB_prefixed extends DB
{
/** All queries generated through this driver will have this prefix */
public $table_prefix = null;
/** Returns Dynamic Query object compatible with this database driver (PDO). Also sets prefix */
public function dsql($class = null)
{
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/sqlite.php | lib/DB/dsql/sqlite.php | <?php
/**
* Undocumented.
*/
class DB_dsql_sqlite extends DB_dsql
{
public function init()
{
parent::init();
$this->sql_templates['describe'] = 'pragma table_info([table_noalias])';
}
public function concat()
{
$t = clone $this;
$t->template = '([concat])';
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/pgsql.php | lib/DB/dsql/pgsql.php | <?php
/**
* Undocumented.
*/
class DB_dsql_pgsql extends DB_dsql
{
public $bt = '"';
/** Use extended postgresql syntax for fetching ID */
public function SQLTemplate($mode)
{
$template = parent::SQLTemplate($mode);
switch ($mode) {
case 'insert':
return $t... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/prefixed.php | lib/DB/dsql/prefixed.php | <?php
/**
* Undocumented.
*/
class DB_dsql_prefixed extends DB_dsql
{
/** Prefix */
public $prefix = null;
public function prefix($prefix)
{
$this->prefix = $prefix;
return $this;
}
public function table($table = UNDEFINED, $alias = UNDEFINED)
{
if ($this->prefix ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/oracle.php | lib/DB/dsql/oracle.php | <?php
/**
* Undocumented.
*/
class DB_dsql_oracle extends DB_dsql
{
public function limit($cnt, $shift = 0)
{
$cnt += $shift;
$this->where('NUM_ROWS>=', $shift);
$this->where('NUM_ROWS<', $cnt);
return $this;
}
public function render_limit()
{
return '';
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/firebird.php | lib/DB/dsql/firebird.php | <?php
/**
* This is a Firebird/Interbase driver for Dynamic SQL.
* To be able to use it in your projects make sure you have the Firebird PDO driver installed for PHP.
* For more info see PHP manual: http://php.net/manual/en/ref.pdo-firebird.php
* Howto for compiling/installing on Linux:
* http://mapopa.blogspot.co... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/DB/dsql/mysql.php | lib/DB/dsql/mysql.php | <?php
/**
* This is a MySQL driver for Dynamic SQL. To make Agile Toolkit support your
* PDO-compatible database create your own class DB_dsql_myclass and redefine
* rendering methods which appear differently on your database.
*/
class DB_dsql_mysql extends DB_dsql
{
public function init()
{
parent:... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Auth/Basic.php | lib/Auth/Basic.php | <?php
/**
* A basic authentication class. Include inside your APP or
* on a page. You may have multiple Auth instances. Supports
* 3rd party plugins.
*
* Use like this in your App class:
*
* $auth=$this->add('Auth');
* $auth->usePasswordEncryption();
* $auth->setModel('User');
* $auth->check();
*
* and add ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Paginator/Basic.php | lib/Paginator/Basic.php | <?php
/**
* Paginator needs to have source set (which can be either Model, DSQL or Array).
* It will render itself into parent and will limit the source to display limited
* number of records per page with ability to travel back and forth.
*/
class Paginator_Basic extends CompleteLister
{
/**
* How many re... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Horizontal.php | lib/Menu/Horizontal.php | <?php
/**
* Undocumented
*/
class Menu_Horizontal extends Menu_Advanced
{
/**
* Default template.
*
* @return array|string
*/
public function defaultTemplate()
{
return array('menu/horizontal');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Main.php | lib/Menu/Main.php | <?php
/**
* Undocumented
*/
class Menu_Main extends Menu_Objective
{
public $current_menu_class = 'atk-state-active';
/**
* Default template.
*
* @return array|string
*/
public function defaultTemplate()
{
return array('menu/main');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Compat.php | lib/Menu/Compat.php | <?php
/**
* This is the description for the Class.
*
* @author Romans <romans@adevel.com>
* @copyright See file COPYING
*
* @version $Id$
*/
// @codingStandardsIgnoreStart
class Menu_Compat extends AbstractView
{
protected $items = array();
protected $last_item = null;
public $current_menu... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Objective.php | lib/Menu/Objective.php | <?php
/**
* Undocumented
*/
class Menu_Objective extends View
{
public $current_menu_class = 'atk-state-current';
// {{{ Inherited properties
/** @var View */
public $owner;
/** @var App_Web */
public $app;
// }}}
public function init()
{
parent::init();
$this-... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Advanced.php | lib/Menu/Advanced.php | <?php
/**
* Undocumented
*/
abstract class Menu_Advanced extends View
{
public $swatch = 'ink';
public $hover_swatch = null;
public $highlight_subpages = false; // appropriate name would be $highlight_parent_page
public $highlight_strict = false; // will try to match page arguments too to detect activ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Basic.php | lib/Menu/Basic.php | <?php
/**
* Basic single-level Menu implementation on top of Lister.
*
* @author Romans <romans@agiletoolkit.org>
*/
class Menu_Basic extends CompleteLister
{
public $items = array();
protected $class_tag = 'class';
protected $last_item = null;
public $current_menu_class = 'atk-state-active'... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Vertical.php | lib/Menu/Vertical.php | <?php
/**
* Undocumented
*/
class Menu_Vertical extends Menu_Advanced
{
/**
* Default template.
*
* @return array|string
*/
public function defaultTemplate()
{
return array('menu/vertical');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/jUI.php | lib/Menu/jUI.php | <?php
/**
* Undocumented
*/
class Menu_jUI extends Menu_Objective
{
// Implementation of jQuery UI Menus
public $current_menu_class = 'current';
public $inactive_menu_class = '';
/** @var string|false */
public $js_widget = 'menu';
public $options = array();
public function render()
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Light.php | lib/Menu/Light.php | <?php
/**
* Sometimes you want to have a HTML-based menu, and all you need PHP to do is to highlight current page.
* It's not that simply always, sometimes there are sub-pages also. This class solves the problem.
*
* Lets build a structure which adds asterik next to page. First we need to specify that the object to... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Advanced/Title.php | lib/Menu/Advanced/Title.php | <?php
/**
* Undocumented
*/
class Menu_Advanced_Title extends Menu_Advanced_Item
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Advanced/Item.php | lib/Menu/Advanced/Item.php | <?php
/**
* Undocumented
*/
class Menu_Advanced_Item extends View
{
// {{{ Inherited properties
/** @var Menu_Advanced */
public $owner;
/// }}}
public function init()
{
parent::init();
if ($this->owner->swatch) {
$this->addComponents(array('swatch' => $this->ow... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Menu/Advanced/Separator.php | lib/Menu/Advanced/Separator.php | <?php
/**
* Undocumented
*/
class Menu_Advanced_Separator extends Menu_Advanced_Item
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Page/About.php | lib/Page/About.php | <?php
/**
* If you would like to specify a custom about page, copy this class to 'page'
* directory in your project and customize it
*/
class Page_About extends Page_DefaultAbout
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Page/Tester.php | lib/Page/Tester.php | <?php
/**
* Tester page is a basic implementation of a testing environment for Agile Toolkit.
* See Documentation for testing
*/
class Page_Tester extends Page
{
public $variances = array();
public $input;
public $responses = array();
public $auto_test = true;
/** Redefine this to the value gene... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Page/DefaultAbout.php | lib/Page/DefaultAbout.php | <?php
/**
* Undocumented
*/
abstract class Page_DefaultAbout extends Page
{
public function init()
{
parent::init();
$this->app->addHook('post-init', array($this, 'aboutFramework'));
}
public function aboutframework()
{
/** @type Frame $msg */
$msg = $this->add('Fra... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Page/AddonIndex.php | lib/Page/AddonIndex.php | <?php
/**
* Undocumented
*
* Created by Vadym Radvansky
* Date: 2/11/14 5:55 PM.
*/
class Page_AddonIndex extends Page
{
public function initMainPage()
{
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Page/Error.php | lib/Page/Error.php | <?php
/**
* This page is displayed every time unhandled exception occurs.
*
* Created on 23.01.2008 by *Camper* (camper@adevel.com)
*/
class Page_Error extends Page
{
public function setError($error)
{
$this->template->trySet('message', $error->getMessage());
return $this;
}
public ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Endpoint/REST.php | lib/Endpoint/REST.php | <?php
/**
* Implementation of RESTful endpoint for App_REST.
*/
// @codingStandardsIgnoreStart because REST is acronym
class Endpoint_REST extends AbstractModel
{
// @codingStandardsIgnoreEnd
public $doc_url = 'app/rest';
public $model_class = null;
public $id_field = null;
public $user_id_fiel... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/TMail.php | lib/Exception/TMail.php | <?php
/**
* Thrown by TMail class.
*/
class Exception_TMail extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Logic.php | lib/Exception/Logic.php | <?php
/**
* Undocumented.
*/
class Exception_Logic extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/PathFinder.php | lib/Exception/PathFinder.php | <?php
/**
* Thrown by PathFinder class.
*/
class Exception_PathFinder extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Hook.php | lib/Exception/Hook.php | <?php
/**
* Undocumented.
*/
class Exception_Hook extends BaseException
{
public $return_value;
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/StopRender.php | lib/Exception/StopRender.php | <?php
/**
* Undocumented.
*/
class Exception_StopRender extends Exception_Stop
{
public function __construct($r)
{
$this->result = $r;
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/InitError.php | lib/Exception/InitError.php | <?php
/**
* Thrown when object initialization sequence was wrong (e.g. object referenced before it is initialized)
* or object is initialized in wrong way (e.g. string value instead of integer).
*
* @author Camper (cmd@adevel.com) on 02.04.2009
*/
class Exception_InitError extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Obsolete.php | lib/Exception/Obsolete.php | <?php
/**
* When some functionality was removed from project.
*
* @author Camper (cmd@adevel.com) on 02.07.2009
*/
class Exception_Obsolete extends Exception_InitError
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Stop.php | lib/Exception/Stop.php | <?php
/**
* To stop process flow, debug purposes.
*
* @author Camper (cmd@adevel.com) on 04.08.2009
*/
class Exception_Stop extends BaseException
{
public $result;
public function __construct($msg = null)
{
parent::__construct($msg ?: 'This exception must be ignored in APP');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/ForUser.php | lib/Exception/ForUser.php | <?php
/**
* Undocumented.
*
* @author Camper (camper@agiletech.ie) on 22.03.2010
*/
class Exception_ForUser extends Exception_InitError
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Migration.php | lib/Exception/Migration.php | <?php
/**
* Undocumented.
*/
class Exception_Migration extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/SystemProcessIO.php | lib/Exception/SystemProcessIO.php | <?php
/**
* Undocumented.
*/
class Exception_SystemProcessIO extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/NotFound.php | lib/Exception/NotFound.php | <?php
/**
* Undocumented.
*/
class Exception_NotFound extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/StopInit.php | lib/Exception/StopInit.php | <?php
/**
* Stops initialisation process. For example if we are sure than no more objects needs to be added
* on the page.
*/
class Exception_StopInit extends Exception_Stop
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/DB.php | lib/Exception/DB.php | <?php
/**
* Undocumented.
*/
class Exception_DB extends BaseException
{
public function addPDOException($e)
{
return $this->addMoreInfo('pdo_error', $e->getMessage());
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/SkipTests.php | lib/Exception/SkipTests.php | <?php
/**
* Stops testing process. For example if you see that database failed to
* connect on our testing environment.
*/
class Exception_SkipTests extends Exception_Stop
{
public function __construct($msg = null)
{
parent::__construct($msg ?: 'No reason specified');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/NotConfigured.php | lib/Exception/NotConfigured.php | <?php
/**
* ExceptionNotConfigured is raised when accessing
* non-existang config value.
*/
class Exception_NotConfigured extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Template.php | lib/Exception/Template.php | <?php
/**
* Thrown by GiTemplate class.
*/
class Exception_Template extends BaseException
{
/** @var GiTemplate */
public $owner;
public function init()
{
parent::init();
if (isset($this->owner) && isset($this->owner->template_file)) {
$this->addMoreInfo('file', $this->ow... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/AccessDenied.php | lib/Exception/AccessDenied.php | <?php
/**
* Any time access to somewhat denied.
*
* @author Camper (cmd@adevel.com) on 29.04.2009
*/
class Exception_AccessDenied extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/ValidityCheck.php | lib/Exception/ValidityCheck.php | <?php
/**
* Thrown by Model on validity check fail.
*
* @author Camper (cmd@adevel.com) on 07.09.2009
*/
class Exception_ValidityCheck extends Exception_ForUser
{
private $field;
public function __construct($msg, $field = null)
{
parent::__construct($msg);
if ($field) {
$this... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/NotImplemented.php | lib/Exception/NotImplemented.php | <?php
/**
* Undocumented.
*
* @author Camper (cmd@adevel.com) on 04.06.2009
*/
class Exception_NotImplemented extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/Installer.php | lib/Exception/Installer.php | <?php
/**
* Undocumented.
*/
class Exception_Installer extends BaseException
{
public function getSolution()
{
return array('Restart installer' => dirname(dirname($this->app->pm->base_path)).'?step=login');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/Exception/NoRecord.php | lib/Exception/NoRecord.php | <?php
/**
* Undocumented.
*/
class Exception_NoRecord extends BaseException
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/jQuery/Chain.php | lib/jQuery/Chain.php | <?php
/**
* This class represents sequential calls to one jQuery object.
*
* jQuery chain proxy. Returned by view->js().
* Calls to this class will be converted into jQuery calls.
*
* Feel free to call _XX functions in this class.
*
* There are some of JS functions which you can call directly from this class.
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Compat.php | lib/TMail/Compat.php | <?php
/**
* Implementation of Template-driven mailer
*
* Class for mail rendering and sending.
* This class is designed to be based on mail templates. Usually you set all the mail parameters
* such as from, to, bcc, subject and so on in the mail template, so in order to send the mail
* you should do the following... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Part.php | lib/TMail/Part.php | <?php
/**
* Undocumented.
*/
class TMail_Part extends AbstractModel
{
/** @var TMail_Template */
public $template = null;
public $content;
public $auto_track_element = true;
/** @var TMail_Basic */
public $owner;
public function init()
{
parent::init();
// Initializ... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Transport.php | lib/TMail/Transport.php | <?php
/**
* Generic implementation of TMail transport.
*/
class TMail_Transport extends AbstractController
{
public function init()
{
parent::init();
$this->owner->addHook('send', array($this, 'send'));
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Basic.php | lib/TMail/Basic.php | <?php
/**
* Undocumented.
*/
class TMail_Basic extends AbstractModel
{
public $mail_template = null;
public $template_class = 'TMail_Template';
public $master_template = 'shared';
/** @var TMail_Template */
public $template;
/** @var TMail_Template */
public $headers;
public $bo... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Template.php | lib/TMail/Template.php | <?php
/**
* Undocumented.
*/
class TMail_Template extends SMlite
{
public $template_type = 'mail';
public function getDefaultSettings()
{
/*
* This function specifies default settings for SMlite. Use
* 2nd argument for constructor to redefine those settings.
*
*... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Transport/Fallback.php | lib/TMail/Transport/Fallback.php | <?php
/**
* Uses default sending routine.
*/
class TMail_Transport_Fallback extends TMail_Transport
{
public function send($tm, $to, $from, $subject, $body, $headers)
{
$this->breakHook(false);
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Transport/Echo.php | lib/TMail/Transport/Echo.php | <?php
/**
* Undocumented.
*/
class TMail_Transport_Echo extends TMail_Transport
{
public function send($tm, $to, $from, $subject, $body, $headers)
{
echo "to: $to<br/>";
echo "from: $from<br/>";
echo "subject: $subject<br/>";
echo "<textarea cols=100 rows=30>$body</textarea><hr... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Transport/Discard.php | lib/TMail/Transport/Discard.php | <?php
/**
* Discards email as it's being sent out.
*/
class TMail_Transport_Discard extends TMail_Transport
{
public function send($tm, $to, $from, $subject, $body, $headers)
{
$this->breakHook(true);
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Transport/DBStore.php | lib/TMail/Transport/DBStore.php | <?php
/**
* Undocumented.
*/
class TMail_Transport_DBStore extends TMail_Transport
{
/** @var Model */
public $model = null;
/**
* @param string $m
*
* @return Model
*/
public function setModel($m)
{
if (is_string($m)) {
$m = 'Model_'.$m;
}
... | php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Part/Attachment.php | lib/TMail/Part/Attachment.php | <?php
/**
* Undocumented.
*/
class TMail_Part_Attachment extends TMail_Part
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Part/Text.php | lib/TMail/Part/Text.php | <?php
/**
* Undocumented.
*/
class TMail_Part_Text extends TMail_Part
{
public function init()
{
parent::init();
$this->template->set('contenttype', 'text/plain');
}
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
atk4/atk4 | https://github.com/atk4/atk4/blob/f12d77813a8b21ca1791f7f4517883fceab81386/lib/TMail/Part/HTML.php | lib/TMail/Part/HTML.php | <?php
/**
* Undocumented.
*/
class TMail_Part_HTML extends TMail_Part
{
}
| php | MIT | f12d77813a8b21ca1791f7f4517883fceab81386 | 2026-01-05T03:03:34.614070Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.