Ejemplo n.º 1
0
 /**
  * Sets direction 'ltr' or 'rtl' for global document
  *
  * @param  string  $textDirection  'ltr' for left-to-right or 'rtl' for right-to-left texts globally on the page
  */
 public function setDirection($textDirection = 'ltr')
 {
     if ($this->_cmsDoc) {
         $this->_cmsDoc->setDirection($textDirection);
     }
     $this->_direction = $textDirection;
 }
Ejemplo n.º 2
0
	/**
	 * @todo Implement testSetDirection().
	 */
	public function testSetDirection() {
		$this->object = new JDocument;

		$this->object->setDirection('rtl');

		$this->assertThat(
			$this->object->direction,
			$this->equalTo('rtl')
		);
	}
Ejemplo n.º 3
0
 /**
  * @testdox  Test that setDirection returns an instance of $this
  */
 public function testEnsureSetDirectionReturnsThisObject()
 {
     $this->assertSame($this->object, $this->object->setDirection('rtl'));
 }