compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
// returns 'My s..'
{code}
||UC-03||
Truncate a string at 6 chars, using ending chars and additionally get the truncated content
{code}
$filter = new Zend_Filter_StringTruncate(array('length' => 6, 'ending' => '..'));
$filter->filter('My string');
// returns 'My s..'
$filter->getTruncated();
// returns 'tring'
{code}
{zone-data}

public function setEnding();
public function getType();
public function setType($type);
public function setType($type); getTruncated();
public function filter($value);
}