for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Teampass - a collaborative passwords manager.
* ---
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @project Teampass API
* @file ItemModel.php
* @author Nils Laumaillé ([email protected])
* @copyright 2009-2022 Teampass.net
* @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0
* @see https://www.teampass.net
*/
require_once PROJECT_ROOT_PATH . "/Model/Database.php";
class ItemModel extends Database
{
public function getItems($limit)
return $this->select("SELECT * FROM ".prefixTable('items')." ORDER BY id ASC LIMIT ?", ["i", $limit]);
}