frontend/models/UnrestrainLinksForm.php
/**
     * Returns array of links to be unrestrained or false on error
     *
     * @return array|boolean
     */
Returns array of links to be unrestrained or false on error
@return array|boolean
Returns array of links to be unrestrained or false on error @return array|boolean
public function prepareData()
    {
        if ($this->validate()) {
            $links = explode("\n", $this->links);
            foreach ($links as $key => &$link) {
                $link = trim($link);
                if (empty($link)) {
                    unset($links[$key]);
                }
            }
            return $links;
        } else {
            return false;
        }
    }
public function prepareData ( ) { if ( $ this -> validate ( ) ) { $ links = explode ( " \n " , $ this -> links ) ; foreach ( $ links as $ key => & $ link ) { $ link = trim ( $ link ) ; if ( empty ( $ link ) ) { unset ( $ links [ $ key ] ) ; } } return $ links ; } else { return false ; } }
Returns array of links to be unrestrained or false on error
 @return array|boolean
Returns array of links to be unrestrained or false on error @return array|boolean