@MB Themes
First attempt.... Do you think this will work?
<?php
class ModelUP extends DAO {
private static $instance;
public static function newInstance() {
if( !self::$instance instanceof self ) {
self::$instance = new self;
}
return self::$instance;
}
function __construct() {
parent::__construct();
}
public function getTable_item_resource() {
return DB_TABLE_PREFIX.'t_item_resource';
}
public function update_item_resource($s_extension) {
$aSet = array(
's_extension' => webp
);
$aWhere = array(
'jpg' => $jpg,
'jpeg' => $jpeg,
'png' => $png,
'gif' => $gif
);
return $this->_update($this->getTable_item_resource(), $aSet, $aWhere);
}
?>