NAME

Rit::Base::Arc::Lim

new

parse_string

  Rit::Base::Arc::Lim->parse( "$arclim" )

  Rit::Base::Arc::Lim->parse( "[$arclim1, $arclim2, ...]" )

  Rit::Base::Arc::Lim->parse( "[ [$arclim1, $arclim2, ...], [...], ... ]" )

Same as /parse but takes a string rather than an arrayref

Returns:

  $arclim

parse

  Rit::Base::Arc::Lim->parse( $arclim )

  Rit::Base::Arc::Lim->parse( [$arclim1, $arclim2, ...] )

  Rit::Base::Arc::Lim->parse( [ [$arclim1, $arclim2, ...], [...], ... ] )

The second level arrayrefs are ANDed together. First lever are ORed together. [ [l1, l2], l3, [l4,l5] ] meens that the arc is accepted if it passes( (l1 and l2) or l3 or (l4 and l5) ).

Returns:

  $arclim

clone

  $arclim->clone

Returns: a copy

add_intersect

  $arclim->add_intersect( $limit, $limit2, ... )

Adds the given limit to each alternative in the arclim. If arclim is empty the limit is used as the only alternative.

Example:

  $arclim->add_intersect('direct')

For the arclim ['submitted','active'] this would give [['submitted','direct'],['active','direct']].

For the arclim [] this would give ['direct'].

Returns: The same arclim, changed

incl_act

  $arclim->incl_act()

Stands for "Does the arclim includes active and/or inactive arcs?"

No arclims menas that only active arcs are included.

Returns:

  ($includes_active, $includes_inactive)

sql

  $arclim->sql( \%args )

Supported args are

  prefix

$extralim is the number of limitations other than active and inactive as the second argument. Used in Rit::Base::Resource in order to find out the cache status.

Returns in scalar context: The sql string to insert, NOT beginning with "and ..."

Returns in list context: ( $sql, $extralim )

sql_prio

  $this->sql_prio( $arclim, \%args )

Returns: The sql prio for use in Rit::Base::Search

size

  $this->size

Returns: The number of alternative limits

sortorder

  $arclim->sortorder( $arc )

Checks which of tha lims in the arclim that the arc matches, in order. The first is numbered 0. No match gives $number_of_tests + 1.

Returns: A plain number

sysdesig

  $this->sysdesig( \%args )

names

  $this->names

Returns: an arrayref of all lim names

includes

  $arclim->includes( $limname )

Returns: boolean

Functions

limflag

  limflag( $label )

  limflag( $label1, $label2, ... )

Supported lables are:

  active
  inactive

  direct
  indirect

  explicit
  implicit

  disregarded
  not_disregarded

  submitted
  not_submitted

  new
  not_new

  old
  not_old

  removal
  not_removal

  created_by_me

  adirect = active + direct

Returns: the corresponding limit as a number to be used for arclim. Additional limits are added together.

arc_meets_lim

  arc_meets_lim( $arc, $lim )

Returns: boolean

literal_meets_lim

  literal_meets_lim( $arc, $lim )

Returns: boolean

SEE ALSO

Rit::Base::Resource