Abstract_Item

Description

Modèle abstrait pour la gestion d'item pour les modèles avec base de données

Synopsis de la classe

Abstract_Item {

  /* Propriétés */
  protected PDO $_db = null
  protected string $_lasterror = ''
  protected File_Helper $_filehelper = null
  protected string $_filehelperstring = ''

  /* Méthodes */
  public void __construct([PDO $db = null)
  protected Abstract_Item assign_array(array &$row)
  public boolean delete_item(integer $id)
  public boolean download_file(string $fieldname[, string $url = '' [, integer $itemid = 0]])
  public boolean execute_delete_item(string $sql)
  public integer execute_insert_item(string $sql)
  public boolean execute_update_item(string $sql)
  public Abstract_Item fetch_item(integer $id[, array $uniques = null])
  public string fetch_last_error()
  public File_Helper filehelper()
  public array get_file_info(string $fieldname[, integer $itemid = 0[, string $value = '']])
  public integer insert_item()  protected void set_error(array $error[, string $sql = ''])
  protected void set_lasterror(string $error)
  protected string sql_select_fields([string $tblPrefix = ''])
  protected string sql_insert_fields()
  protected string sql_insert_values()
  protected string sql_update_set()
  public array toArray()
  public boolean update_item(integer $id)
  public boolean upload_file(string $fieldname, integer $itemid[, string $inputPrefix = ''])

}