Lines Matching defs:type
60 * @param string $type 'media' or 'page'
64 public function resolveMoves($old, $type) {
67 if($type != 'media' && $type != 'page') throw new Exception('Not a valid type');
71 if($type == 'page') {
98 * @param $type 'media' or 'page'
101 protected function _nsStartCheck($relold, $new, $type) {
103 if($type == 'page' && substr($relold, -1) == ':') {
122 * @param string $type 'media' or 'page'
126 public function relativeLink($relold, $new, $type) {
128 if($type != 'media' && $type != 'page') throw new Exception('Not a valid type');
133 if($type == 'page') {
159 $new = $this->_nsStartCheck($relold, $new, $type);
184 $newrel = $this->_nsStartCheck($relold,$newrel,$type);
190 $newrel = $this->_nsStartCheck($relold,$newrel,$type);
332 if($p['type'] == 'internalmedia') { // else: external media