src/Budkit/Datastore/Activerecord.php
final public function identifiers($identifier)
    {
        // Convert tabs or multiple spaces into single spaces
        $identifier = preg_replace('/[\t ]+/', ' ', $identifier);

        // If the item has an alias declaration we remove it and set it aside.
        // Basically we remove everything to the right of the first space
        $alias = '';
        if (strpos($identifier, ' ') !== FALSE) {
            $alias = strstr($identifier, " ");
            $identifier = substr($identifier, 0, -strlen($alias));
        }

        if (strpos($identifier, '.') !== FALSE) {

            //do something
        }

        //return for now
        return $identifier . $alias;
    }
final public function identifiers($identifier)
    {
        // Convert tabs or multiple spaces into single spaces
        $identifier = preg_replace('/[\t ]+/', ' ', $identifier);

        // If the item has an alias declaration we remove it and set it aside.
        // Basically we remove everything to the right of the first space
        $alias = '';
        if (strpos($identifier, ' ') !== FALSE) {
            $alias = strstr($identifier, " ");
            $identifier = substr($identifier, 0, -strlen($alias));
        }

        if (strpos($identifier, '.') !== FALSE) {

            //do something
        }

        //return for now
        return $identifier . $alias;
    }
final public function identifiers ( $ identifier ) { // Convert tabs or multiple spaces into single spaces $ identifier = preg_replace ( '/[\t ]+/' , ' ' , $ identifier ) ; // If the item has an alias declaration we remove it and set it aside. // Basically we remove everything to the right of the first space $ alias = '' ; if ( strpos ( $ identifier , ' ' ) !== FALSE ) { $ alias = strstr ( $ identifier , " " ) ; $ identifier = substr ( $ identifier , 0 , - strlen ( $ alias ) ) ; } if ( strpos ( $ identifier , '.' ) !== FALSE ) { //do something } //return for now return $ identifier . $ alias ; }
Helper method for modifying any indentifiers in the query

@param string $identifier
@access private
@return string modified identifier e.g escaped, santized etc
Helper method for modifying any indentifiers in the query