- if (!$this->profile) {
- $this->profile = Profile::staticGet($this->profile_id);
- }
- return $this->profile;
- }
-
- function validateContent() {
- return Validate::string($this->content, array('min_length' => 1, 'max_length' => 140));
- }
-
- function validateUrl() {
- return is_null($this->url) ||
- Validate::uri($this->url, array('allowed_schemes' => array('http', 'https')));