Lines Matching refs:environment

276         global $environment;
282 for ($i=1;$i<=$environment->NUMBER_OF_BASIC_TYPES;$i++) {
283 $this->columnTypeList[$i] = $environment->TYPES[$i];
291 $this->columnTypeList[$environment->LOOKUP_OFFSET+$lookupCount]
300 foreach ($environment->tableNames as $tableName) {
304 $this->columnTypeList[$environment->REFERENCE_OFFSET+$counter]
353 global $environment;
363 for ($i=1;$i<=$environment->NUMBER_OF_BASIC_TYPES;$i++) {
366 $list .=">".$environment->TYPES[$i]."</option>";
369 $counter = $environment->LOOKUP_OFFSET;
378 for ($ptr =1;$ptr <=count($environment->tableNames);$ptr++) {
381 $counter=$ptr+$environment->REFERENCE_OFFSET;
555 global $environment;
566 if ($this->mandatory == $environment->YES) $this->allowNoSelection=false;
570 if ($this->visible == $environment->YES) $this->isVisible = true;
583 global $environment;
596 if ($this->type==$environment->TYPE_LOOKUP) {
600 elseif ($this->type==$environment->TYPE_STRING
601 || $this->type==$environment->TYPE_NUMBER
602 || $this->type==$environment->TYPE_DATE
603 || $this->type==$environment->TYPE_INTERNAL_LINK
604 || $this->type==$environment->TYPE_EXTERNAL_LINK) {
610 … elseif ($this->type>$environment->LOOKUP_OFFSET && $this->type<$environment->REFERENCE_OFFSET) {
612 $list=$session->lookupOptions[$this->type - $environment->LOOKUP_OFFSET];
615 elseif ($this->type>$environment->REFERENCE_OFFSET) {
617 $referenceTable = new Table($this->type - $environment->REFERENCE_OFFSET,"data");
663 global $environment;
667 $posOfPipe = strpos($value, $environment->COLUMN_SEPARATOR);
671 if ($this->type == $environment->TYPE_INTERNAL_LINK
672 || $this->type == $environment->TYPE_EXTERNAL_LINK) {
677 if ($this->type != $environment->TYPE_INTERNAL_LINK
678 && $this->type != $environment->TYPE_EXTERNAL_LINK) {
684 if ($this->type == $environment->TYPE_INTERNAL_LINK) {
686 $ret = str_replace( $environment->COLUMN_SEPARATOR, $environment->COLON, $value);
688 if ($this->type == $environment->TYPE_EXTERNAL_LINK) {
690 $ret = str_replace( $environment->COLUMN_SEPARATOR, $environment->COLON, $value);
702 global $environment;
704 if ($this->type == $environment->TYPE_INTERNAL_LINK
705 || $this->type == $environment->TYPE_EXTERNAL_LINK) {
708 $ptr=strrpos ($value,$environment->COLON); // the last colon
709 $ret = substr($value,0,$ptr).$environment->COLUMN_SEPARATOR.substr($value,$ptr+1);
723 global $environment;
727 if ($this->type == $environment->TYPE_NUMBER
728 || $this->type > $environment->NUMBER_OF_BASIC_TYPES) {
734 if ($this->type == $environment->TYPE_DATE) {
746 if ($this->type == $environment->TYPE_INTERNAL_LINK) {
749 || strpos($value, $environment->COLUMN_SEPARATOR) === false
755 if ($this->type == $environment->TYPE_EXTERNAL_LINK) {
758 || strpos($value, $environment->COLUMN_SEPARATOR) === false
764 if ($this->mandatory==$environment->YES) {
779 global $environment;
783 if ($this->type==$environment->TYPE_STRING
784 ||$this->type==$environment->TYPE_NUMBER)
787 elseif ($this->type==$environment->TYPE_DATE) {
799 elseif ($this->type==$environment->TYPE_INTERNAL_LINK) {
800 $elements=explode($environment->COLON, $value);
805 $ptr=strrpos ($value,$environment->COLON); // the last colon
810 elseif ($this->type==$environment->TYPE_EXTERNAL_LINK) {
811 $elements=explode($environment->COLON, $value);
815 $ptr=strrpos ($value,$environment->COLON); // the last colon
820 elseif ($this->type == $environment->TYPE_LOOKUP) {
824 … elseif ($this->type>$environment->LOOKUP_OFFSET && $this->type<$environment->REFERENCE_OFFSET) {
825 $list=$session->lookupOptions[$this->type - $environment->LOOKUP_OFFSET];
830 elseif ($this->type>$environment->REFERENCE_OFFSET) {
832 $referenceTable = new Table($this->type - $environment->REFERENCE_OFFSET,"data");
913 global $environment;
926 if (abs($this->id)>count($environment->tableNames)) {
931 $this->name = $environment->tableNames[abs($p_id)];
941 for ($i=1;$i<=count($environment->COLUMNS['label']);$i++) {
943 , $environment->COLUMNS['name'][$i]
944 , $environment->COLUMNS['label'][$i]
945 , $environment->COLUMNS['mandatory'][$i]
946 , $environment->COLUMNS['unique'][$i]
947 , $environment->COLUMNS['type'][$i]
948 , $environment->COLUMNS['visible'][$i]
956 if ($this->columnObjs[1]->type==$environment->TYPE_NUMBER
957 && $this->columnObjs[1]->unique==$environment->YES) {
965 }elseif ($p_idOrName == $environment->DICTIONARY_FOLDER ) {
966 $this->name = $environment->DICTIONARY_FOLDER;
978 if (in_array($tableName,$environment->tableNames ,true))
981 $tableId = count($environment->tableNames)+1;
986 $directoryName = $environment->baseFolder.$id.'-'.$tableName;
988 $environment = new Environment();
1006 global $environment;
1041 global $environment;
1067 if ($this->columnObjs[$counter]->unique == $environment->YES) {
1092 global $environment;
1103 if ($fields[6] == '') $fields[6] = $environment->YES;
1123 global $environment;
1140 if ($type= $environment->TYPE_STRING) {
1141 $posOfWildCard = strpos($filterValue, $environment->WILD_CARD);
1151 $posOfWildCard = strpos($filterValue, $environment->WILD_CARD,1);
1172 if ($value==0 && $type>$environment->LOOKUP_OFFSET) {
1178 … $filterValue = str_replace($environment->WILD_CARD,'',$filters[$colCounter]);
1397 global $environment;
1403 … $this->name = $environment->baseFolder.$environment->DICTIONARY_FOLDER.'/'.$p_tableObjOrName;
1416 global $environment;
1419 $dbFolder = $environment->get_folder($p_tableObj->id);
1524 global $environment;
1538 $sep=$environment->COLUMN_SEPARATOR;
1583 global $environment;
1598 $sep=$environment->COLUMN_SEPARATOR;
1628 global $environment;
1631 $elements=explode($environment->COLUMN_SEPARATOR, $row);
1675 global $environment;
1731 global $environment;
1792 global $environment;
1851 global $environment;
1968 global $environment;
1997 global $environment;
1998 $ret = '<form method="post" action="'.$environment->URL.'">';
2045 global $environment;
2049 …$ret .= '<input type="image" src="'.$environment->imagesFolder.$image.'" name="fn['.$action.']['.$…
2094 global $environment;
2096 $file = new File($environment->DEBUG_FILE,"debug");
2189 global $environment;
2211 $file=new File($environment->DEBUG_FILE,"debug");
2215 $file=new File($environment->DEBUG_FILE,"debug");
2228 if ($IDX==$dbName.':'.$environment->DICTIONARY_FOLDER)
2385 if ($tab->columnObjs[$sortedColumnId]->type == $environment->TYPE_EXTERNAL_LINK
2386 ||$tab->columnObjs[$sortedColumnId]->type == $environment->TYPE_INTERNAL_LINK) {
2391 $elements=explode($environment->COLON, $value);
2397 elseif ($tab->columnObjs[$sortedColumnId]->type >= $environment->REFERENCE_OFFSET) {
2398 … $refTableID = $tab->columnObjs[$sortedColumnId]->type - $environment->REFERENCE_OFFSET;