getMetaPlatforms.

@author Rasmus Ebbesen <re@nodes.dk>

@static

@return array
764712
public static function getMetaPlatforms()
    {
        return array_merge([
            self::PLATFORM_IOS,
            self::PLATFORM_ANDROID,
            self::PLATFORM_WINDOWS,
            self::PLATFORM_WEB,
        ], config('nodes.meta.platforms', []));
    }
176356
public function getPrintMetadata() {
        $metadata = new Metadata($this->getDbAdapter());

        foreach ($metadata->getSchemas() as $valueSchema) {

            echo 'In Schema ' . $valueSchema . PHP_EOL;

            // get the table names
            $tableNames = $metadata->getTableNames($valueSchema);

            foreach ($tableNames as $tableName) {
                echo 'In Table ' . $tableName . PHP_EOL;

                $table = $metadata->getTable($tableName, $valueSchema);


                echo '    With columns: ' . PHP_EOL;
                foreach ($table->getColumns() as $column) {
                    echo '        ' . $column->getName()
                    . ' -> ' . $column->getDataType()
                    . PHP_EOL;
                }

                echo PHP_EOL;
                echo '    With constraints: ' . PHP_EOL;

                foreach ($metadata->getConstraints($tableName, $valueSchema) as $constraint) {
                    /** @var $constraint Zend\Db\Metadata\Object\ConstraintObject */
                    echo '        ' . $constraint->getName()
                    . ' -> ' . $constraint->getType()
                    . PHP_EOL;
                    if (!$constraint->hasColumns()) {
                        continue;
                    }
                    echo '            column: ' . implode(', ', $constraint->getColumns());
                    if ($constraint->isForeignKey()) {
                        $fkCols = array();
                        foreach ($constraint->getReferencedColumns() as $refColumn) {
                            $fkCols[] = $constraint->getReferencedTableName() . '.' . $refColumn;
                        }
                        echo ' => ' . implode(', ', $fkCols);
                    }
                    echo PHP_EOL;
                }

                echo '----' . PHP_EOL;
            }
            echo '-------------------------------------------' . PHP_EOL;
        }
    }
1129235
public function getMessages(): array
    {
        $templates = [
            new Message($this->message->getBody(), $this->message->getContentType()),
        ];

        // TODO: Loop through parts

        return $templates;
    }
405196
public function getMethods()
    {
        $moufMethods = array();
        foreach ($this->xmlRoot->method as $method) {
            $moufMethods[] = new MoufXmlReflectionMethod($this, $method);
        }
        
        return $moufMethods;
    }
679709
public function getSortableMetaKeys()
    {
        if (!isset($_POST['posttype']) || empty($_POST['posttype'])) {
            echo '0';
            die();
        }

        $meta = \Modularity\Helper\Post::getPosttypeMetaKeys($_POST['posttype']);

        $response = array(
            'meta_keys' => $meta,
            'sort_curr' => get_field('posts_sort_by', $_POST['post']),
            'filter_curr' => get_field('posts_meta_key', $_POST['post']),
        );

        echo json_encode($response);
        die();
    }
701012
public function allMethodNames() {
		$methods = array (
			'add',
			'tab',
			'field',
			'configure',
			'group',
			'hasmanygrid',
			'imageupload',
			'removefield',
			'addfield'
		);
		foreach(SS_ClassLoader::instance()->getManifest()->getDescendantsOf("FormField") as $field) {
			$methods[] = strtolower(preg_replace('/Field$/',"",$field));
		}
		return $methods;
	}
558705
public static function get_active_metaplates( ) {

		global $post;

		if( empty( $post ) ){ return; } // no post - return

		// GET METAPLATEs
		$metaplates = self::get_registry();
		$meta_stack = array();
		if ( is_array( $metaplates ) ) {
			foreach ( $metaplates as $metaplate_try ) {
				$is_plate = self::get_metaplate( $metaplate_try['id'] );
				if ( ! empty( $is_plate['post_type'][ $post->post_type ] ) ) {
					switch ( $is_plate['page_type'] ) {
						case 'single':
							if ( is_single() || is_page() ) {
								$meta_stack[] = $is_plate;
							}
							break;
						case 'archive':
							if ( ( is_archive() || is_front_page() ) && ( ! is_page() || ! is_single() ) ) {
								$meta_stack[] = $is_plate;
							}
							break;
						default:
							$meta_stack[] = $is_plate;
							break;
					}
				}
			}
		}

		return $meta_stack;

	}
1314443
public function getNavFormParams()
    {

        if (($sParams = $this->getViewConfigParam('navformparams')) === null) {
            $oStr = getStr();
            $sParams = '';
            $aNavParams = $this->getConfig()->getTopActiveView()->getNavigationParams();
            foreach ($aNavParams as $sName => $sValue) {
                if (isset($sValue)) {
                    $sParams .= "<input type=\"hidden\" name=\"{$sName}\" value=\"";
                    $sParams .= $oStr->htmlentities($sValue) . "\" />\n";
                }
            }
            $this->setViewConfigParam('navformparams', $sParams);
        }

        return $sParams;
    }
105018
public function getMeta()
    {
        $arrReturn = [];
        if (null !== $this->entity->getMeta()) {
            foreach ($this->entity->getMeta() as $meta) {
                if (!$meta->getLocale() || $meta->getLocale() === $this->locale) {
                    array_push(
                        $arrReturn,
                        [
                            'id' => $meta->getId(),
                            'key' => $meta->getKey(),
                            'value' => $meta->getValue(),
                        ]
                    );
                }
            }

            return $arrReturn;
        }

        return;
    }
197362
public function getApplyFormSettings()
    {
        if (!$this->applyFormSettings) {
            $settings = new DisableElementsCapableFormSettings();
            $settings->setForm('Applications/Apply');
            $this->applyFormSettings = $settings;
        }
        return $this->applyFormSettings;
    }
870252
public function getMetas()
    {
        $ret = array();

        if (!isset($this->metas['title']) && $this->getParameter('nyroDev_utility.share.title')) {
            $this->setTitle($this->getParameter('nyroDev_utility.share.title'));
        }
        if (!isset($this->metas['description']) && $this->getParameter('nyroDev_utility.share.description')) {
            $this->setDescription($this->getParameter('nyroDev_utility.share.description'));
        }
        if (!isset($this->metas['keywords']) && $this->getParameter('nyroDev_utility.share.keywords')) {
            $this->set('keywords', $this->getParameter('nyroDev_utility.share.keywords'));
        }
        if (!isset($this->metasProp['og:image']) && $this->getParameter('nyroDev_utility.share.image')) {
            $this->setImage($this->getParameter('nyroDev_utility.share.image'));
        }

        if (isset($this->metas['title']) && $this->metas['title']) {
            $ret[] = '<title>'.$this->metas['title'].'</title>';
            unset($this->metas['title']);
        }

        foreach ($this->metas as $k => $v) {
            $ret[] = '<meta name="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }
        foreach ($this->metasProp as $k => $v) {
            $ret[] = '<meta property="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }

        return implode("\n", $ret);
    }
1126390
private function getFormSiteDemo()
    {
        $melisMelisCoreConfig = $this->serviceLocator->get('MelisCoreConfig');
        $appConfigForm = $melisMelisCoreConfig->getItem('MelisDemoCms/setup/download/form/melis_demo_cms_setup/forms/melis_demo_cms_setup_download_form');


        $factory = new \Zend\Form\Factory();
        $formElements = $this->getServiceLocator()->get('FormElementManager');
        $factory->setFormElementManager($formElements);
        $form = $factory->createForm($appConfigForm);

        // default data
        $scheme = 'https';
        $domain = $this->getRequest()->getUri()->getHost();

        $data = [
            'sdom_scheme' => $scheme,
            'sdom_domain' => $domain,
        ];

        $form->setData($data);

        return $form;

    }
345381
public function getDataForm(): array
    {
        $data = [];
        foreach ($this->dicionario as $meta) {
            if($meta->getFormat() === "password") {
                $data[$meta->getColumn()] = "";
            } else {
                $data[$meta->getColumn()] = $meta->getValue();
            }
        }

        return $data;
    }
594740
private function getSymfonyCompatibleGettersAndSetters()
    {

        return array();

        if( !$this->symfonyFormGetters ) {
            return array();
        }

        // build output
        $output = explode( "\n", <<<PHP
/**
* Symfony2 compatible getters and setters.
* These are __not__ to be used by Bond code. These have be depreciated.
*/
// /*
PHP
        );

        $output = array_merge(
            $output,
            $this->symfonyFormGetters,
            array(''),
            $this->symfonyFormSetters,
            array('/**/')
        );

        return $output;

    }
1078030
public function meta()
    {
        return array_merge([
            'wrapperClasses' => $this->wrapperClasses,
            'indexClasses' => $this->indexClasses,
            'inputClasses' => $this->inputClasses,
            'fieldClasses' => $this->fieldClasses,
            'panelFieldClasses' => $this->panelFieldClasses,
            'labelClasses' => $this->labelClasses,
            'panelLabelClasses' => $this->panelLabelClasses,
            'indexLinkClasses' => $this->indexLinkClasses,
            'excerptClasses' => $this->excerptClasses,
        ], $this->meta);
    }
1214899
function formLayout(): array
    {
        if(!$this->layoutBuilt) {
            $this->buildFormLayout();
            $this->layoutBuilt = true;
        }

        return [
            "tabbed" => $this->tabbed,
            "tabs" => collect($this->tabs)->map(function($tab) {
                return $tab->toArray();
            })->all()
        ];
    }
142654
public function getMetadata(): array
    {
        if ($this->metadata === null) {
            $this->metadata = $this->readMetadata();

            ksort($this->metadata);
        }

        return $this->metadata;
    }