コード例 #1
0
ファイル: Content.php プロジェクト: robertodormepoco/zf2
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'src':
             $this->_src = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
コード例 #2
0
ファイル: Rights.php プロジェクト: robertodormepoco/zf2
 public function __construct($text = null)
 {
     parent::__construct();
     $this->_text = $text;
 }
コード例 #3
0
ファイル: Text.php プロジェクト: mwoerlein/vector-graphics
 /**
  * @param string $text
  * @param float $x
  * @param float $y
  */
 public function __construct($text, $x, $y)
 {
     parent::__construct($text);
     $this->x = (double) $x;
     $this->y = (double) $y;
 }