Product_OrderItem::TableTitle PHP Method

TableTitle() public method

public TableTitle ( )
    public function TableTitle()
    {
        $product = $this->Product();
        $tabletitle = $product ? $product->Title : $this->i18n_singular_name();
        $this->extend('updateTableTitle', $tabletitle);
        return $tabletitle;
    }

Usage Example

 function TableTitle()
 {
     return parent::TableTitle() . ' (' . $this->ProductVariation()->Title . ')';
 }