Recolte l'inforation sur le(s) services existant.

@param bool $meta_name pour recuperer une valeur specifique, renvoi tout si false.

@return string|array renvoi une meta_value specifique ou toutes
16079
public function get_service_metas( $meta_name = false )
    {
        $meta_value = false;
        if( $meta_name &&  array_key_exists( $meta_name, $this->_service_metas ) )
        {
            $meta_value = $this->_service_metas[$meta_name];
        }

        return ( $meta_value ) ? $meta_value : $this->_service_metas;
    }
476590
public function metaCustomColumn($column_name, $meta_field, $id)
    {
        if ($column_name === $column_name) {
            $column_name = get_post_meta($id, $meta_field, true);
            echo $column_name;
        }
    }
745385
public function deleteMetadata($name = false)
    {
        if ($name === false) {
            $this->metadata = array();
            return true;
        }
        if (!isset($this->metadata[$name])) {
            return false;
        }
        unset($this->metadata[$name]);
        return true;
    }
306437
public function getMeta()
	{
		// Build the request path.
		$path = '/meta';

		return $this->processResponse($this->client->get($this->fetchUrl($path)), 200);
	}
668578
public static function getMeta($name)
  {
      static $instances;

      if (!isset($instances[$name])) {
          $app = AnService::get('repos:settings.app')->find(array('package' => 'com_'.$name));
          $instances[$name] = json_decode($app->meta);
      }

      return $instances[$name];
  }
282702
public function meta($name = NULL, $content = NULL) {
        if ( $name ) {
            $this->_meta[$name] = ['name' => $name, 'content' => $content];
        } else {
            return implode(PHP_EOL, array_map(function($meta) {
                return '<meta name="' . $meta['name'] . '" content="' . $meta['content'] . '" />';
            }, $this->_meta)) . PHP_EOL;
        }
    }
190596
private function checkSelecaoUnique(Meta $meta): string
    {
        $mult = "";

        $tpl = new \Helpers\Template("form");
        foreach ($meta->getSelect() as $select) {

            if (!empty($select->getValue())) {
                $dr = new Dicionario($select->getRelation());
                $dr->setData($select->getValue());
                $tplData = array_merge($select->getDados(), ["title" => $dr->getRelevant()->getValue(), "id" => $select->getValue()]);
            } else {
                $tplData = array_merge($select->getDados(), ["title" => "", "id" => ""]);
            }

            $tplData['nome'] = preg_match('/s$/i', $select->getNome()) ? substr($select->getNome(), 0, strlen($select->getNome()) - 1) : $select->getNome();
            $tplData['genero'] = preg_match('/a$/i', $select->getNome()) ? "a" : "o";
            $tplData['parentColumn'] = $meta->getColumn();
            $tplData['parentValue'] = $meta->getValue() ? 1 : "";
            $tplData['column'] = $select->getColumn();
            $tplData['ngmodel'] = "dados." . $select->getColumn();
            $tplData['entity'] = $meta->getRelation();

            $mult .= $tpl->getShow("selecaoUnique", $tplData);
        }

        return $mult;
    }
1316147
public function whereAnyMeta(array $metas)
	{
		$filters = array();
		
		foreach ($metas as $meta => $data) {
			$value = is_array($data) ? Arr::get($data, 0) : $data;
			$operator = is_array($data) ? Arr::get($data, 1, '=') : '=';
			
			if (is_object($meta)) {
				$filters[] = array('id' => $meta->id, 'value' => $value, 'operator' => $operator);
			}
			else {
				$filters[] = array('name' => $meta, 'value' => $value, 'operator' => $operator);
			}
		}
		
		$this->filters[]['metas'] = $filters;
		
		return $this;
	}
831300
public function getMeta()
    {
        if (isset($this->_contextConfig['site']['meta'])) {
            return array_merge($this->_contextConfig['site']['meta'],$this->_data['meta']);
        } else {
            return $this->_data['meta'];
        }
    }
276318
public function getMetaMarkup()
    {
        $html = "";

        foreach ($this->getMeta() as $name => $content)
        {
            if(is_array($content)) {
                foreach($content as $cont)
                    $html .= "<meta name=\"{$name}\" content=\"{$cont}\">\n";
            } else {
                $html .= "<meta name=\"{$name}\" content=\"{$content}\">\n";
            }
        }

        return $html;
    }
598395
public function _get($_name)
    {
        $getMethod = 'get' . ucfirst($_name);
        if(method_exists($this,$getMethod))
            return $this->$getMethod();
        else
            return false;
    }
1243469
public function hasMeta($name)
    {
        $meta = $this->objectData('meta', []);

        return isset($meta[$this->sanitizeMetaName($name)]);
    }
848612
function MetaDatabases()
	{
		if(@mssql_select_db("master")) {
				 $qry=$this->metaDatabasesSQL;
				 if($rs=@mssql_query($qry,$this->_connectionID)){
						 $tmpAr=$ar=array();
						 while($tmpAr=@mssql_fetch_row($rs))
								 $ar[]=$tmpAr[0];
						@mssql_select_db($this->database);
						 if(sizeof($ar))
								 return($ar);
						 else
								 return(false);
				 } else {
						 @mssql_select_db($this->database);
						 return(false);
				 }
		 }
		 return(false);
	}
1018891
public function getMetaHeaders()
    {
        if ($this->offsetExists('meta') && is_array($this->meta)) {
            $meta = $this->meta;
        } else {
            $meta = [];
        }
        if (!array_key_exists('Content-Type', $meta)) {
            $meta['Content-Type'] = 'text/html;charset=UTF-8';
        }

        // Remove null/empty values, this allow you to remove the Content-Type by making it empty.
        return array_filter($meta);
    }
574408
public function getMeta()
    {
        $metas = '';
        foreach ($this->headmeta as $meta) {
            $metas .= $meta . "\n";
        }
        $metas = rtrim($metas, "\n");
        return $metas;
    }
163061
public function seeUserMetaFor( $user_id, $meta_key, $meta_value = null ) {
		$metas = get_user_meta( $user_id, $meta_key );

		$message = sprintf( 'User meta %s does not exist', $meta_key );
		$this->assertNotEmpty( $metas, $message );

		if ( func_num_args() > 2 ) {
			$message = sprintf( 'User meta %s does not contain expected value', $meta_key );
			$this->assertContains( $meta_value, $metas, $message );
		}
	}
1112547
public function getMetaDataValue($key) {

            return (isset($this->meta[$key]) ? $this->meta[$key] : null);

        }