Esempio n. 1
0
	public function indexAction() {
		if ($this->_bookmarklet) {
			$type = Stuffpress_Services_Webparse::getTypeFromLink($this->_bkurl);
			switch ($type) {
				case SourceItem::STATUS_TYPE:
					$this->_forward('status');
					break;
				case SourceItem::LINK_TYPE:
					$this->_forward('link');
					break;
				case SourceItem::BLOG_TYPE:
					$this->_forward('blog');
					break;
				case SourceItem::IMAGE_TYPE:
					$this->_forward('image');
					break;
				case SourceItem::AUDIO_TYPE:
					$this->_forward('audio');
					break;
				case SourceItem::VIDEO_TYPE:
					$this->_forward('video');
					break;
			}					
		} else {
			$this->_forward('status');
		}
	}