コード例 #1
0
ファイル: Property.php プロジェクト: waifei/createphp
 /**
  * Render the property's opening tag (and the entity wrapper if we're in
  * standalone mode)
  *
  * {@inheritDoc}
  *
  * @api
  */
 public function renderStart($tag_name = false)
 {
     $output = '';
     if (!$this->_parent->isRendering()) {
         $output .= $this->_parent->renderStart();
         $this->_render_standalone = true;
     }
     return $output . parent::renderStart($tag_name);
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: waifei/createphp
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function renderStart($tag_name = false)
 {
     // render this for admin users only
     if (!$this->_parent->isEditable()) {
         $this->unsetAttribute('about');
     }
     if (empty($this->_attributes['rev'])) {
         $this->getRev();
         // trigger determining the rev attribute
     }
     return parent::renderStart($tag_name);
 }