public function getTokens() { preg_match_all("/(\\:\\w+)/", $this->getSchema(), $matches); $tokens = array(); foreach ($matches[0] as $match) { $tokens[$match] = array(); } return $tokens; }