public static function sortDir($d = null) { if (!is_null($d)) { self::$_sortDir = $d; } else { return self::$_sortDir; } }