Exemple #1
0
 public static function save(\Rebond\Core\ModelInterface $model)
 {
     $query = 'INSERT INTO app_standard (media_id, `description`) VALUES (?,?)';
     $params = [$model->getMediaId(), $model->getDescription()];
     $db = new Util\Data();
     $appId = $db->execute($query, $params);
     $model->setAppId($appId);
 }