Class \avadim\FastExcelWriter\Conditional\Conditional

Source: 6.19.2 · 0608684

On this page


__construct()


php
public function __construct(string $type, string $operator, $options, $style)

Create a new Conditional

Parameters

  • $type
  • $operator
  • $options
  • $style

aboveAverage()


php
public static function aboveAverage(array $style): Conditional

Parameters

  • array $style

beginsWith()


php
public static function beginsWith(string $text, 
                                  ?array $style = null): Conditional

Applies a style if the cell value starts with the specified text

Parameters

  • string $text
  • array|null $style

belowAverage()


php
public static function belowAverage(array $style): Conditional

Parameters

  • array $style

between()


php
public static function between(array $values, 
                               ?array $style = null): Conditional

The cell value is between two given values

Parameters

  • int[]|float[] $values
  • array|null $style

colorScale()


php
public static function colorScale(string $color1, string $color2, 
                                  ?string $color3 = null): Conditional

Parameters

  • string $color1
  • string $color2
  • string|null $color3

colorScaleMax()


php
public static function colorScaleMax(string $color): Conditional

Parameters

  • string $color

colorScaleMin()


php
public static function colorScaleMin(string $color): Conditional

Parameters

  • string $color

colorScaleNum()


php
public static function colorScaleNum(array $values, string $color1, 
                                     string $color2, 
                                     ?string $color3 = null): Conditional

Parameters

  • array $values
  • string $color1
  • string $color2
  • string|null $color3

contains()


php
public static function contains(string $text, 
                                ?array $style = null): Conditional

Applies a style if the cell value contains the specified text.

Parameters

  • string $text
  • array|null $style

dataBar()


php
public static function dataBar(string $color): Conditional

Colored data bar inside a cell

Parameters

  • string $color

duplicateValues()


php
public static function duplicateValues(array $style): Conditional

Parameters

  • array $style

endsWith()


php
public static function endsWith(string $text, 
                                ?array $style = null): Conditional

Applies a style if the cell value ends with the specified text

Parameters

  • string $text
  • array|null $style

equals()


php
public static function equals($value, ?array $style = null): Conditional

The cell value is equal to the given value

Parameters

  • int|float|string $value
  • array|null $style

expression()


php
public static function expression(string $formula, 
                                  ?array $style = null): Conditional

Applies the style if the expression evaluates to TRUE

Parameters

  • string $formula
  • array|null $style

greaterThan()


php
public static function greaterThan($value, ?array $style = null): Conditional

The cell value is greater than the specified value

Parameters

  • int|float|string $value
  • array|null $style

greaterThanOrEqual()


php
public static function greaterThanOrEqual($value, 
                                          ?array $style = null): Conditional

The cell value is greater than or equal to the specified value

Parameters

  • int|float|string $value
  • array|null $style

isEmpty()


php
public static function isEmpty(?string $cell = null, 
                               ?array $style = null): Conditional

Applies a style if the cell is empty

Parameters

  • string|null $cell
  • array|null $style

lessThan()


php
public static function lessThan($value, ?array $style = null): Conditional

The cell value is less than the specified value

Parameters

  • int|float|string $value
  • array|null $style

lessThanOrEqual()


php
public static function lessThanOrEqual($value, 
                                       ?array $style = null): Conditional

The cell value is less than or equal to the specified value

Parameters

  • int|float|string $value
  • array|null $style

low()


php
public static function low(int $rank, array $style): Conditional

Parameters

  • int $rank
  • array $style

lowPercent()


php
public static function lowPercent(int $rank, array $style): Conditional

Parameters

  • int $rank
  • array $style

make()


php
public static function make(string $operator, $formula, 
                            ?array $style = null): Conditional

Cell value is compared to a specified value or formula

Parameters

  • string $operator
  • int|float|string|array $formula
  • array|null $style

notBetween()


php
public static function notBetween(array $values, 
                                  ?array $style = null): Conditional

The cell value is between two given values

Parameters

  • int[]|float[] $values
  • array|null $style

notContains()


php
public static function notContains(string $text, 
                                   ?array $style = null): Conditional

Applies a style if the cell value does not contain the specified text.

Parameters

  • string $text
  • array|null $style

notEquals()


php
public static function notEquals($value, ?array $style = null): Conditional

The cell value is not equal to the specified value

Parameters

  • int|float|string $value
  • array|null $style

top()


php
public static function top(int $rank, array $style): Conditional

Parameters

  • int $rank
  • array $style

topPercent()


php
public static function topPercent(int $rank, array $style): Conditional

Parameters

  • int $rank
  • array $style

uniqueValues()


php
public static function uniqueValues(array $style): Conditional

Parameters

  • array $style

getStyle()


php
public function getStyle(): ?array

Parameters

None


setDirectionRtl()


php
public function setDirectionRtl(bool $value): Conditional

Determines the direction of the bars

Parameters

  • bool $value

setDxfId()


php
public function setDxfId(int $dxfId): Conditional

Parameters

  • int $dxfId

setFillColor()


php
public function setFillColor($color): Conditional

Parameters

  • $color

setFontColor()


php
public function setFontColor($color): Conditional

Parameters

  • $color

setGradient()


php
public function setGradient(bool $value): Conditional

Enables or disables the gradient style of the bars

Parameters

  • bool $value

setShowValue()


php
public function setShowValue(bool $value): Conditional

Controls the display of the value in a cell

Parameters

  • bool $value

setStyle()


php
public function setStyle($style): Conditional

Parameters

  • string|array $style

FastExcelWriter 6.19.2 · Search this library and version.

Loading search…

Could not load search. Please try again.

No results. Try another word or method name.