Exemplo n.º 1
0
 /**
  * Renders the info of a single method.
  *
  * @return string
  *   The generated markup.
  */
 public function callMe()
 {
     $data = $this->parameters['data'];
     $output = '';
     foreach ($data as $key => $string) {
         $model = new Model($this->storage);
         $model->setData($string)->setName($key)->setType('reflection')->setConnector2('=');
         if ($key !== 'comments' && $key !== 'declared in' && $key !== 'source') {
             $model->setNormal($string);
         } else {
             $model->setNormal('. . .');
             $model->hasExtras();
         }
         $output .= $this->storage->render->renderSingleChild($model);
     }
     return $output;
 }
Exemplo n.º 2
0
 /**
  * Render a dump for a float value.
  *
  * @param Model $model
  *   The data we are analysing.
  *
  * @return string
  *   The rendered markup.
  */
 public function analyseFloat(Model $model)
 {
     $json = array();
     $json['type'] = 'float';
     $model->setNormal($model->getData())->setType($model->getAdditional() . 'float')->setJson($json);
     return $this->storage->render->renderSingleChild($model);
 }