Mysql_Helper

Description

Classe de base pour les contrôleur de modèle avec base de données MySQL

Synopsis de la classe

Mysql_Helper extends Controller {

  /* Propriétés */
  protected array $models = array()
  protected array $modifids = array()
  protected array $items = array()
  protected array $list = array()
  protected array $editor = array()
  protected array $editorConf = array('imageFolder' => '', 'imageModel' => null, 'linkModel' => null)

  /* Méthodes */
  public void __construct()
  protected boolean _add_model(string $modelName)
  protected void _handle_save_form(string $modelName, integer $id[, string $saveAction = 'save'])integer $id)
  protected void _handle_table_form(string $modelName[, integer $page = 0[, string $order = '']])
  protected void _post_save_form(string $modelName, array $result)
  protected void _post_table_form(string $modelName, array $result)
  protected void _pre_save_form(string $modelName, integer $id)
  protected void _pre_table_form(string $modelName)
  protected boolean _set_save_form(Abstract_ItemModel &$item, string $modelName, integer $id)
  protected integer _set_table_form(Abstract_ItemModel &$item, string $modelName, integer $id)
  private array _update_save_form(string $modelName, 
  private array _update_table_form(string $modelName)
  public void admin_index([integer $page = 0[, string $order = '']])
  public void admin_multisave([integer $page = 0[, string $order = '']])
  public void admin_createtable(string $modelName)
  public void admin_add()
  public void admin_save([integer $id = 0])
  public void admin_shortlist(integer $page)
  public void admin_shortsave([integer $id = 0])

}