Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
Box\Spout\Common\Entity\Cell Class Reference

Public Member Functions

 __construct ($value, Style $style=null)
 
 __toString ()
 
 getStyle ()
 
 getType ()
 
 getValue ()
 
 getValueEvenIfError ()
 
 isBoolean ()
 
 isDate ()
 
 isEmpty ()
 
 isError ()
 
 isNumeric ()
 
 isString ()
 
 setStyle ($style)
 
 setType ($type)
 
 setValue ($value)
 

Public Attributes

const TYPE_BOOLEAN = 4
 Boolean cell type.
 
const TYPE_DATE = 5
 Date cell type.
 
const TYPE_EMPTY = 3
 Empty cell type.
 
const TYPE_ERROR = 6
 Error cell type.
 
const TYPE_FORMULA = 2
 Formula cell type Not used at the moment.
 
const TYPE_NUMERIC = 0
 Numeric cell type (whole numbers, fractional numbers, dates)
 
const TYPE_STRING = 1
 String (text) cell type.
 

Protected Member Functions

 detectType ($value)
 Get the current value type.
 

Protected Attributes

Style $style
 The cell style.
 
int null $type
 The cell type.
 
mixed null $value
 The value of this cell.
 

Constructor & Destructor Documentation

◆ __construct()

Box\Spout\Common\Entity\Cell::__construct ( $value,
Style $style = null )
Parameters
mixed | null$value
Style | null$style

Member Function Documentation

◆ __toString()

Box\Spout\Common\Entity\Cell::__toString ( )
Return values
string

◆ detectType()

Box\Spout\Common\Entity\Cell::detectType ( $value)
protected

Get the current value type.

Parameters
mixed | null$value
Return values
int

◆ getStyle()

Box\Spout\Common\Entity\Cell::getStyle ( )
Return values
Style

◆ getType()

Box\Spout\Common\Entity\Cell::getType ( )
Return values
int|null

◆ getValue()

Box\Spout\Common\Entity\Cell::getValue ( )
Return values
mixed|null

◆ getValueEvenIfError()

Box\Spout\Common\Entity\Cell::getValueEvenIfError ( )
Return values
mixed

◆ isBoolean()

Box\Spout\Common\Entity\Cell::isBoolean ( )
Return values
bool

◆ isDate()

Box\Spout\Common\Entity\Cell::isDate ( )
Return values
bool

◆ isEmpty()

Box\Spout\Common\Entity\Cell::isEmpty ( )
Return values
bool

◆ isError()

Box\Spout\Common\Entity\Cell::isError ( )
Return values
bool

◆ isNumeric()

Box\Spout\Common\Entity\Cell::isNumeric ( )
Return values
bool

◆ isString()

Box\Spout\Common\Entity\Cell::isString ( )
Return values
bool

◆ setStyle()

Box\Spout\Common\Entity\Cell::setStyle ( $style)
Parameters
Style | null$style

◆ setType()

Box\Spout\Common\Entity\Cell::setType ( $type)
Parameters
int$type

◆ setValue()

Box\Spout\Common\Entity\Cell::setValue ( $value)
Parameters
mixed | null$value

The documentation for this class was generated from the following file: