public function countRequiredTabSeparators(ContentWrapper\Model $model)
	{
		if($model->getType() != ContentWrapper\Model::TYPE_START) {
			$model = \ContentModel::findByPk($model->bootstrap_parentId);
		}

		$tabs = array();

		if($model->bootstrap_tabs) {
			$tabs = deserialize($model->bootstrap_tabs, true);
		}
		elseif(\Input::post('bootstrap_tabs')) {
			$tabs = \Input::post('bootstrap_tabs');
		}

		$count = 0;

		foreach($tabs as $tab) {
			if($tab['type'] != 'dropdown') {
				$count++;
			}
		}

		return $count > 0 ? ($count - 1 ) : 0;
	}
public function countRequiredTabSeparators(ContentWrapper\Model $model)
	{
		if($model->getType() != ContentWrapper\Model::TYPE_START) {
			$model = \ContentModel::findByPk($model->bootstrap_parentId);
		}

		$tabs = array();

		if($model->bootstrap_tabs) {
			$tabs = deserialize($model->bootstrap_tabs, true);
		}
		elseif(\Input::post('bootstrap_tabs')) {
			$tabs = \Input::post('bootstrap_tabs');
		}

		$count = 0;

		foreach($tabs as $tab) {
			if($tab['type'] != 'dropdown') {
				$count++;
			}
		}

		return $count > 0 ? ($count - 1 ) : 0;
	}
public function countRequiredTabSeparators ( ContentWrapper \ Model $ model ) { if ( $ model -> getType ( ) != ContentWrapper \ Model :: TYPE_START ) { $ model = \ ContentModel :: findByPk ( $ model -> bootstrap_parentId ) ; } $ tabs = array ( ) ; if ( $ model -> bootstrap_tabs ) { $ tabs = deserialize ( $ model -> bootstrap_tabs , true ) ; } elseif ( \ Input :: post ( 'bootstrap_tabs' ) ) { $ tabs = \ Input :: post ( 'bootstrap_tabs' ) ; } $ count = 0 ; foreach ( $ tabs as $ tab ) { if ( $ tab [ 'type' ] != 'dropdown' ) { $ count ++ ; } } return $ count > 0 ? ( $ count - 1 ) : 0 ; }
count required tab separator elements

@param ContentWrapper\Model $model

@return int
count required tab separator elements