Browse Source

Category added. Lot rotation system started

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@24 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
akulikov 16 years ago
parent
commit
fcf9f48c13
  1. 16
      classes/Env.class.php
  2. 1
      classes/Model.class.php

16
classes/Env.class.php

@ -1,12 +1,12 @@
<?php <?php
/** /**
* Класс для работы с переменными окружения.
* Класс для работы с переменными окружения.
* *
* @copyright
* @link
* @copyright
* @link
* @package Majestic * @package Majestic
* @subpackage Core * @subpackage Core
* @since
* @since
* @version SVN: $Id$ * @version SVN: $Id$
* @filesource $URL$ * @filesource $URL$
*/ */
@ -58,13 +58,5 @@ final class Env
{ {
self::$params = self::$params + $params; self::$params = self::$params + $params;
} }
static function parseTimer($time)
{
$hours = intval($time / 3600);
$minutes = intval($time/60 - $hours*60);
return sprintf('%02d:%02d:%02d', $hours, $minutes, $time - $hours*3600 - $minutes*60);
}
} }
?> ?>

1
classes/Model.class.php

@ -55,6 +55,7 @@ abstract class Model
switch (strtolower(substr($sql, 0, 6))) { switch (strtolower(substr($sql, 0, 6))) {
case 'select': case 'select':
case '(selec':
return new ModelSelectResult($res); return new ModelSelectResult($res);
case 'insert': case 'insert':
return new ModelInsertResult($this->handler); return new ModelInsertResult($this->handler);

Loading…
Cancel
Save