PHP Method Schema::getNamespace, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::getNamespace from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
Show file File: actions.class.php Project: jonphipps/Metadata-Registry
0
 /**
  * @param SchemaProperty $schemaprop
  * @param Schema         $schemaObj
  */
 public function setDefaultUri($schemaprop, $schemaObj)
 {
     $newURI = $schemaObj->getNamespace();
     $UriId = $schemaObj->getLastUriId() + 1;
     $schemaprop->setUri($newURI . $UriId);
     $this->setDefaultLexicalAlias($schemaprop, $newURI);
 }
Example #2
Show file File: Set.php Project: adrianclay/xbrl
0
 /**
  * @param string $basePath
  * @param string $schemaLocation
  * @return Schema
  */
 public function import($basePath, $schemaLocation)
 {
     $p = parse_url($schemaLocation);
     if (empty($p['scheme'])) {
         $schemaLocation = realpath($basePath . '/' . $p['path']);
         if (!empty($this->realPathToImport[$schemaLocation])) {
             return $this->imports[$this->realPathToImport[$schemaLocation]];
         }
         $dom = new Schema($schemaLocation);
         $basePath = dirname($schemaLocation);
         foreach ($dom->getImports() as $import) {
             $this->import($basePath, $import->value);
         }
         foreach ($dom->getLinkbases() as $import) {
             $this->importLinkbase($basePath, $import->value);
         }
         $namespace = $dom->getNamespace();
         $this->imports[$namespace] = $dom;
         $this->realPathToImport[$schemaLocation] = $namespace;
         return $dom;
     }
     return null;
 }
Example #3
Show file File: Concept.php Project: adrianclay/xbrl
0
 /**
  * @return string
  */
 public function getNamespace()
 {
     return $this->parent->getNamespace();
 }