You are here

class CompassList in Sassy 7

Compass extension List object. @package PHamlP @subpackage Sass.extensions.compass.functions

Hierarchy

Expanded class hierarchy of CompassList

3 string references to 'CompassList'
SassExtentionsCompassFunctionsColourStops::grad_colour_stops in phamlp/sass/extensions/compass/functions/colourStops.php
SassExtentionsCompassFunctionsColourStops::grad_end_position in phamlp/sass/extensions/compass/functions/colourStops.php
SassExtentionsCompassFunctionsColourStops::grad_position in phamlp/sass/extensions/compass/functions/colourStops.php

File

phamlp/sass/extensions/compass/functions/colourStops.php, line 17

View source
class CompassList extends SassLiteral {
  public function __construct($values) {
    $this->value = $values;
  }
  public function getValues() {
    return $this->value;
  }

  /**
   * Returns the type of this
   * @return string the type of this
   */
  protected function getTypeOf() {
    return 'list';
  }
  public function toString() {
    $values = array();
    foreach ($this->value as $value) {
      $values[] = $value
        ->toString();
    }
    return join(', ', $values);
  }
  public static function isa($subject) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CompassList::getTypeOf protected function * Returns the type of this * Overrides SassLiteral::getTypeOf
CompassList::getValues public function
CompassList::isa public static function * Returns a value indicating if a token of this type can be matched at * the start of the subject string. * Overrides SassLiteral::isa
CompassList::toString public function * Returns a string representation of the value. * Overrides SassLiteral::toString
CompassList::__construct public function * class constructor * Overrides SassLiteral::__construct
SassLiteral::$typeOf private static property *
SassLiteral::$value protected property *
SassLiteral::addChild public function * Adds a child object to this. *
SassLiteral::assertInRange public static function * Asserts that the value of a literal is within the expected range *
SassLiteral::assertType public static function * Asserts that the literal is the expected type *
SassLiteral::getValue protected function * Returns the value of this * 4
SassLiteral::op_and public function * The SassScript and operation. *
SassLiteral::op_assign public function
SassLiteral::op_bw_and public function * Bitwise AND the value of other and this value * 1
SassLiteral::op_bw_not public function * Bitwise NOT the value of other and the value of this *
SassLiteral::op_bw_or public function * Bitwise OR the value of other and this value * 1
SassLiteral::op_bw_xor public function * Bitwise XOR the value of other and the value of this * 1
SassLiteral::op_comma public function * SassScript ',' operation. *
SassLiteral::op_concat public function * The SassScript default operation (e.g. $a $b, "foo" "bar"). *
SassLiteral::op_div public function * SassScript '/' operation. * 2
SassLiteral::op_eq public function * The SassScript == operation. * 1
SassLiteral::op_gt public function * The SassScript > operation. * 1
SassLiteral::op_gte public function * The SassScript >= operation. * 1
SassLiteral::op_lt public function * The SassScript < operation. * 1
SassLiteral::op_lte public function * The SassScript <= operation. * 1
SassLiteral::op_minus public function * SassScript '-' operation. * 2
SassLiteral::op_modulo public function * SassScript '%' operation. * 2
SassLiteral::op_neq public function * The SassScript != operation. *
SassLiteral::op_not public function * The SassScript not operation. * 1
SassLiteral::op_or public function * The SassScript or operation. *
SassLiteral::op_plus public function * SassScript '+' operation. * 3
SassLiteral::op_shiftl public function * Shifts the value of this left by the number of bits given in value * 1
SassLiteral::op_shiftr public function * Shifts the value of this right by the number of bits given in value * 1
SassLiteral::op_times public function * SassScript '*' operation. * 3
SassLiteral::op_xor public function * The SassScript xor operation. *
SassLiteral::toBoolean public function * Returns the boolean representation of the value of this *
SassLiteral::__get public function * Getter. *
SassLiteral::__toString public function