public static function addPhoto($args) { $table = new FM_Models_FM_PhotoGallery(); if ($id = $table->insertPhoto($args)) { return $id; } return 0; }