src/xPDO/Om/xPDOGenerator.php
public function getPlatformClass($domainClass) {
        $relative = (strpos($domainClass, '\\') !== 0);
        $exploded = explode('\\', ltrim($domainClass, '\\'));
        $slice = array_slice($exploded, -1);
        $class = $slice[0];
        $namespace = implode('\\', array_slice($exploded, 0, -1));
        if (!empty($namespace)) $namespace .= '\\';
        if ($relative) {
            $platformClass = "\\{$this->model['package']}\\{$namespace}{$this->model['platform']}\\{$class}";
        } else {
            $platformClass = "\\{$namespace}{$this->model['platform']}\\{$class}";
        }
        return $platformClass;
    }
public function getPlatformClass($domainClass) {
        $relative = (strpos($domainClass, '\\') !== 0);
        $exploded = explode('\\', ltrim($domainClass, '\\'));
        $slice = array_slice($exploded, -1);
        $class = $slice[0];
        $namespace = implode('\\', array_slice($exploded, 0, -1));
        if (!empty($namespace)) $namespace .= '\\';
        if ($relative) {
            $platformClass = "\\{$this->model['package']}\\{$namespace}{$this->model['platform']}\\{$class}";
        } else {
            $platformClass = "\\{$namespace}{$this->model['platform']}\\{$class}";
        }
        return $platformClass;
    }
public function getPlatformClass ( $ domainClass ) { $ relative = ( strpos ( $ domainClass , '\\' ) !== 0 ) ; $ exploded = explode ( '\\' , ltrim ( $ domainClass , '\\' ) ) ; $ slice = array_slice ( $ exploded , - 1 ) ; $ class = $ slice [ 0 ] ; $ namespace = implode ( '\\' , array_slice ( $ exploded , 0 , - 1 ) ) ; if ( ! empty ( $ namespace ) ) $ namespace .= '\\' ; if ( $ relative ) { $ platformClass = "\\{$this->model['package']}\\{$namespace}{$this->model['platform']}\\{$class}" ; } else { $ platformClass = "\\{$namespace}{$this->model['platform']}\\{$class}" ; } return $ platformClass ; }
Get the platform class name of the specified domain class.

It should be relative to the current model namespace or absolute.

@param string $domainClass A domain class to get the platform class name from.

@return string The corresponding platform class name for the domain class.
Get the platform class name of the specified domain class .