Lines Matching refs:self
16 public const MSORT_DEFAULT_DIRECTION = self::MSORT_ASC;
17 public const MSORT_DEFAULT_TYPE = self::MSORT_STRING;
224 $row[self::MGROUP_REALDATE] = $real_date;
296 $dir = self::MSORT_ASC;
300 $dir = self::MSORT_DESC;
314 $dir = self::MSORT_ASC;
317 $dir = self::MSORT_DESC;
327 $type = self::MSORT_NUMERIC;
332 $type = ($opt['natsort']) ? self::MSORT_NAT : self::MSORT_STRING;
335 $type = ($opt['natsort']) ? self::MSORT_NAT_CASE : self::MSORT_STRING_CASE;
348 $group_by = self::MGROUP_NONE;
351 $group_by = self::MGROUP_NAMESPACE;
354 $group_by = self::MGROUP_HEADING;
356 if ($group_by !== self::MGROUP_NONE) {
630 // HACK: self:: does not work inside a closure so...
631 $self = self::class;
634 $result = $sort_func($sort_array, function (array $left, array $right) use ($sort_opts, $keys, $self) {
642 case $self::MSORT_NUMERIC:
647 case $self::MSORT_STRING:
651 case $self::MSORT_STRING_CASE: //case-insensitive
655 case $self::MSORT_NAT:
659 case $self::MSORT_NAT_CASE: //case-insensitive
663 case $self::MSORT_REGULAR:
676 $cmp = $key_cmp * (($sort_opts['dir'][$idx] === $self::MSORT_DESC) ? -1 : 1);
749 if ($group_type === self::MGROUP_HEADING) {
753 $cur = strftime($date_format, $sort_array[$idx][self::MGROUP_REALDATE]);
757 } elseif ($group_type === self::MGROUP_NAMESPACE) {