<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of TiposCargos
*
* @author Desarrollo
*/
class TiposCargos {
//put your code here
public static function todos() {
$sqlQuery = "SELECT * FROM TiposCargos;";
return SicamDB::selectVariasFilas($sqlQuery);
}
public static function cargos($tipoCargoID) {
$sqlQuery = CargosSQL::DATOS_BASICOS . " WHERE tipoCargoID=?; ";
return SicamDB::selectVariasFilas($sqlQuery, array($tipoCargoID));
}
}