public static function setConn($conn) { self::$conn = $conn; }
/** * Encerra o projeto e a conexão * @return void */ public static function close() { if (CRUDQuery::isPDOMode()) { Connection::close(); } elseif (CRUDQuery::isMySqliMode()) { ConnectionMySqli::close(); } }
/** * Unico ponto em que seão executadas as querys da crud * @param string $sql * @return PDOStatement|resource */ public static function executeQuery($sql) { if (self::$debug || self::$debugSql) { echo $sql . "<hr />"; } return CRUDQuery::executeQuery($sql); }