from() 공개 메소드

Supports method chaining.
public from ( mixed $input = null ) : Breadcrumb
$input mixed Either: PHP array, JSON array, URI string
리턴 Breadcrumb
예제 #1
0
 /**
  * Test provide InvalidArgumentException thrown as exception
  *
  * @expectedException InvalidArgumentException
  */
 public function testIAException()
 {
     $this->bread->append(false, 'left', true);
     $this->bread->append(null);
     $this->bread->append('nasdal', true, 'asds');
     $this->bread->from(2323);
     $this->bread->from(array());
 }